-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
more detail in HTTP language #2718 #2722
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
501e84c
HTTP: add http-version/status-code/reason-phrase for http response
Jxck 60ed53d
HTTP: support more http request method
Jxck a73e864
HTTP: support method/request-target/http-version in request-line
Jxck 8a1be31
npm run build
Jxck 9ead580
HTTP: fixup test format
Jxck a5a71b0
HTTP: remove repeating in HTTP version
Jxck 23032c9
HTTP: Just allow [A-Z]+ for http method
Jxck a4a261d
HTTP: alias url for request-target
Jxck 5005504
HTTP: update request-line_feature.test
Jxck 6981f20
HTTP: re-generate response-status_feature.test
Jxck a1c6456
HTTP: merge HTTP Version number pattern
Jxck 073eb92
npm run build
Jxck ca1d631
HTTP: add property alias to response-status http-version
Jxck 1e71a08
npm run build
Jxck 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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,58 +1,126 @@ | ||
| POST http://example.com HTTP/1.0 | ||
| GET http://localhost:9999/foo.html HTTP/1.1 | ||
| PUT http://www.example.com HTTP/2.0 | ||
| DELETE https://example.com HTTP/1.1 | ||
| OPTIONS https://www.example.com HTTP/1.1 | ||
| PATCH http://example.com HTTP/1.0 | ||
| TRACE http://example.com HTTP/1.0 | ||
| CONNECT http://example.com HTTP/1.0 | ||
| GET /path/to/foo.html HTTP/1.1 | ||
| GET / HTTP/1.0 | ||
| GET / HTTP/1.1 | ||
| GET /path/to/file HTTP/1.1 | ||
| GET /path/to/file?a=1&b=2 HTTP/1.1 | ||
| GET http://example.com HTTP/1.1 | ||
| GET https://example.com HTTP/1.1 | ||
| GET https://example.com/ HTTP/1.1 | ||
| GET https://example.com/path/to/file?a=1&b=2 HTTP/1.1 | ||
| GET https://example.com:443/path/to/file?a=1&b=2 HTTP/1.1 | ||
| GET https://user:[email protected]:443/path/to/file?a=1&b=2 HTTP/1.1 | ||
| HEAD / HTTP/1.1 | ||
| POST / HTTP/1.1 | ||
| PUT / HTTP/1.1 | ||
| DELETE / HTTP/1.1 | ||
| CONNECT / HTTP/1.1 | ||
| OPTIONS / HTTP/1.1 | ||
| TRACE / HTTP/1.1 | ||
| PATCH / HTTP/1.1 | ||
| PRI / HTTP/1.1 | ||
| SEARCH / HTTP/1.1 | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| [ | ||
| ["request-line", [ | ||
| ["property", "POST"], | ||
| " http://example.com HTTP/1.0" | ||
| ["method", "GET"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.0"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["property", "GET"], | ||
| " http://localhost", | ||
| ["attr-name", ":9999"], | ||
| "/foo.html HTTP/1.1" | ||
| ["method", "GET"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["property", "PUT"], | ||
| " http://www.example.com HTTP/2.0" | ||
| ["method", "GET"], | ||
| ["request-target", "/path/to/file"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["property", "DELETE"], | ||
| " https://example.com HTTP/1.1" | ||
| ["method", "GET"], | ||
| ["request-target", "/path/to/file?a=1&b=2"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["property", "OPTIONS"], | ||
| " https://www.example.com HTTP/1.1" | ||
| ["method", "GET"], | ||
| ["request-target", "http://example.com"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["property", "PATCH"], | ||
| " http://example.com HTTP/1.0" | ||
| ["method", "GET"], | ||
| ["request-target", "https://example.com"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["property", "TRACE"], | ||
| " http://example.com HTTP/1.0" | ||
| ["method", "GET"], | ||
| ["request-target", "https://example.com/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["property", "CONNECT"], | ||
| " http://example.com HTTP/1.0" | ||
| ["method", "GET"], | ||
| ["request-target", "https://example.com/path/to/file?a=1&b=2"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["property", "GET"], | ||
| " /path/to/foo.html HTTP/1.1" | ||
| ["method", "GET"], | ||
| ["request-target", "https://example.com:443/path/to/file?a=1&b=2"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["property", "GET"], | ||
| " / HTTP/1.1" | ||
| ["method", "GET"], | ||
| ["request-target", "https://user:[email protected]:443/path/to/file?a=1&b=2"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["method", "HEAD"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["method", "POST"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["method", "PUT"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["method", "DELETE"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["method", "CONNECT"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["method", "OPTIONS"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["method", "TRACE"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["method", "PATCH"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["method", "PRI"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]], | ||
| ["request-line", [ | ||
| ["method", "SEARCH"], | ||
| ["request-target", "/"], | ||
| ["http-version", "HTTP/1.1"] | ||
| ]] | ||
| ] | ||
|
|
||
|
|
||
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.