-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#4244): add README.md and examples of http request. Also fixed t…
…he (#4285) ambiguity in the grammar.
- Loading branch information
1 parent
902cbcc
commit 2b47574
Showing
8 changed files
with
209 additions
and
214 deletions.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# HTTP Grammar | ||
|
||
An ANTLR4 grammar for [HTTP](https://www.rfc-editor.org/rfc/rfc7230). | ||
This grammar is based on the HTTP/1.1 specification (RFC 7230, RFC 7231) | ||
and closely follows | ||
the [ABNF](https://www.rfc-editor.org/rfc/rfc7230#appendix-B) format. | ||
|
||
Currently, the grammar is incomplete and only supports the request line and | ||
headers. |
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,2 @@ | ||
OPTIONS /&&&//&? HTTP/9.1 | ||
%%: |
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,2 @@ | ||
PING /google.com HTTP/1.1 | ||
Host: www.google.com.hk |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
TRACE /&/&&//&&&/&&&&?/// HTTP/8.1 | ||
`````:C D | ||
``: #### x y z | ||
```:!!! |
Oops, something went wrong.