forked from basho/mochiweb
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nhse d34 otp26 #1
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
927cd19
Fix typo in atom
big-r81 a46b10a
Merge pull request #245 from big-r81/patch-1
etrepum 38aadf3
Remove leading and trailing whitespaces
big-r81 16c43ef
Merge pull request #247 from big-r81/patch-2
etrepum 48c0cdd
v3.1.0
etrepum 6d22721
Merge pull request #248 from mochi/follow-up-247
etrepum bd0c848
fix release date
etrepum 6d94ceb
Bug in mochiweb_request:read_chunk_length/2 #188
BradS2S 1ccacbf
Merge pull request #249 from BradS2S/main
etrepum 26f388b
Add OTP 25 to test matrix
etrepum a250223
Note latest compatibility in README
etrepum b1c5cca
Merge pull request #251 from mochi/otp-25
etrepum ef51f62
Update CHANGES.md
etrepum 7ad3bd3
Add a test for the chunked encoding fix
etrepum 7c4d311
Merge pull request #252 from mochi/test-chunked-encoding
etrepum 7ed4ecf
Update README.md
vjc22 125d080
Update README.md
vjc22 eaba29b
Update README.md
vjc22 666ac57
Merge pull request #254 from vjc22/patch-1
etrepum 5bd8411
Fix rebar edoc and test in CI
etrepum 0733494
Merge pull request #257 from mochi/fix-edoc
etrepum 8b2d844
Add mochiweb_request:is_closed/1 function
nickva af661f1
Merge pull request #258 from nickva/add-request-is-closed-function
etrepum f455126
Update CHANGES and version
etrepum cab4474
Merge pull request #259 from mochi/add-request-is-closed-function
etrepum 1aa9ba1
mochinum:digits/1: fix handling of -0.0 for OTP-26.1/27.0
mikpe 97573d2
Merge pull request #260 from mikpe/fix-match-on-float-zero
nickva 897f22f
Update CHANGES for v3.2.1
etrepum fa3bf82
Update Erlang CI images
nickva 293b95d
Update certificates
etrepum 4e5372e
Merge pull request #261 from nickva/update-ci-images
etrepum a816606
use single quotes around 'maybe' atom for compatibility with OTP 27
michallepicki 66a5ef8
Update CHANGES and ci matrix
etrepum 4b03d12
Update mochiweb_util tests to avoid OTP 27 warnings
etrepum be68a43
Fix mochijson2 test that was map-order dependent
etrepum bc6ac7f
checkout v4
etrepum 004080b
checkout@v3 for otp 18 & 19
etrepum 611254e
Merge pull request #262 from michallepicki/otp-27
etrepum 607c654
Update erlang.yml
martinsumner bf02c7d
Merge remote-tracking branch 'mochi/main' into nhse-d34-otp26
martinsumner 278ef89
Test with OTP container
martinsumner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ insert_final_newline = true | |
[*.{erl,src,hrl}] | ||
indent_style = space | ||
indent_size = 4 | ||
tab_width = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,56 @@ | ||
# MochiWeb | ||
MochiWeb is an Erlang library for building lightweight HTTP servers. | ||
|
||
The latest version of MochiWeb is available at https://github.com/mochi/mochiweb | ||
## Overview | ||
MochiWeb provides a lightweight and fast solution for building HTTP servers in Erlang. The library provides features for building robust and scalable HTTP servers. | ||
|
||
The mailing list for MochiWeb is at https://groups.google.com/group/mochiweb/ | ||
## Getting Started | ||
Before you can use MochiWeb, you'll need to have [Erlang OTP](https://www.erlang.org/) installed. Once you have Erlang OTP installed, you can download the latest version of MochiWeb from the [GitHub repository](https://github.com/mochi/mochiweb). | ||
|
||
Erlang OTP is required for setting up the MochiWeb environment and is available at https://www.erlang.org/ | ||
For a MochiWeb project, first obtain a copy of MochiWeb using Git by running the command. | ||
|
||
To create a new mochiweb using project see the `example_project` in the `examples/` folder. | ||
|
||
Information about Rebar (Erlang build tool) is available at https://github.com/erlang/rebar3 | ||
```erlang-repl | ||
$ git clone git://github.com/mochi/mochiweb.git. | ||
``` | ||
To create a project. | ||
|
||
MochiWeb is currently tested with Erlang/OTP 18.3 through 24.0, | ||
versions older than 3.0.0 may still be compatible back to R15B-03. | ||
```erlang-repl | ||
$ cd mochiweb | ||
$ make app PROJECT=exampleName | ||
``` | ||
|
||
# OTP 21.2, 21.2.1, 21.2.2 warning | ||
You can now start the project with. | ||
|
||
```erlang-repl | ||
$ cd ../exampleName/ | ||
$ make | ||
$ ./start-dev.sh | ||
``` | ||
|
||
You can access the app by navigating to http://localhost:8080 in your browser. | ||
|
||
For an example, view the `example_project` in the `examples/` folder. | ||
|
||
|
||
## Benefits | ||
* Lightweight: MochiWeb is designed to be lightweight and fast, making it ideal for use in resource-constrained environments. | ||
|
||
* Easy to use: MochiWeb provides a simple and intuitive API that makes it easy to get started with building HTTP servers. | ||
|
||
* Robust: MochiWeb provides a comprehensive set of features for building robust and scalable HTTP servers. | ||
|
||
## Documentations and Resources | ||
[Information about Rebar (Erlang build tool)](https://github.com/erlang/rebar3) | ||
|
||
[Mailing list](https://groups.google.com/group/mochiweb/) | ||
|
||
## OTP 21.2, 21.2.1, 21.2.2 warning | ||
|
||
OTP 21.2 (up to and including 21.2.2) introduced an SSL regression that | ||
makes these releases unsafe to use. See [ERL-830](https://bugs.erlang.org/browse/ERL-830). | ||
This issue was resolved in OTP 21.2.3. | ||
|
||
|
||
## Contributing | ||
MochiWeb is an open-source project and welcomes contributions from the community. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apps_dirs: | ||
- "_build/default/lib/*" | ||
include_dirs: | ||
- "_build/default/lib/*/include" | ||
- "include" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since otp20 there is string:trim(S, both) that would help you a long way...
But possibly some other guarantees are given here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there may be a difference in the handling of "\r", which isn't referred to in this function. For now, I'm preferring to de-risk the change and not make any assumptions.