mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Add rfc7230 test suite and update others to recent Gun
This is a large commit. The rfc7230 test suite adds many tests from the RFC7230 document. Gun has been updated quite a bit recently, which broke the Cowboy suites. This is now fixed with this commit. A new hook onfirstrequest has been added. It was very useful during debugging of the test suites. The initial process code has changed a little; more changes are expected with the switch to maps for options.
This commit is contained in:
parent
90ae31998e
commit
228cebaf04
21 changed files with 2137 additions and 440 deletions
|
@ -48,7 +48,7 @@ outcome of the processing.
|
|||
The time the request (request line and headers) takes to be
|
||||
received by the server must be limited and subject to configuration.
|
||||
A server must wait at least 5 seconds before dropping the connection.
|
||||
A 418 status code must be sent if the request line was received
|
||||
A 408 status code must be sent if the request line was received
|
||||
fully when the timeout is triggered.
|
||||
|
||||
An HTTP/1.1 server must understand any valid HTTP/1.0 request,
|
||||
|
@ -105,7 +105,7 @@ forms are specific to the CONNECT and site-wide OPTIONS method,
|
|||
respectively. (RFC7230 5.3.2)
|
||||
|
||||
The fragment part of the target URI is not sent. It must be
|
||||
ignrored by a server receiving it. (RFC7230 5.1)
|
||||
ignored by a server receiving it. (RFC7230 5.1)
|
||||
|
||||
```
|
||||
request-target = origin-form / absolute-form / authority-form / asterisk-form
|
||||
|
@ -362,10 +362,6 @@ version = "HTTP/1.0" / "HTTP/1.1"
|
|||
Any version number other than HTTP/1.0 or HTTP/1.1 must be
|
||||
rejected by a server or intermediary with a 505 status code. (RFC7230 2.6, RFC7230 A.2)
|
||||
|
||||
A request that has whitespace different than CRLF following the
|
||||
version must be rejected with a 400 status code and the closing
|
||||
of the connection. (RFC7230 3.1.1)
|
||||
|
||||
A request that has any whitespace or characters different than
|
||||
CRLF following the version must be rejected with a 400 status
|
||||
code and the closing of the connection. (RFC7230 3.1.1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue