Commit Graph

65 Commits

Author SHA1 Message Date
Marten Seemann
566c709548 update H3 ALPN to draft-22 2019-07-18 17:38:49 -04:00
Marten Seemann
2b8cece60a add a context to Session.Open{Uni}StreamSync 2019-06-22 19:37:21 +08:00
Marten Seemann
5550ba2c3b add a context to Session.Accept{Uni}Stream 2019-06-22 19:37:11 +08:00
Marten Seemann
12bce1caaa add a context to Listener.Accept 2019-06-22 19:36:52 +08:00
Marten Seemann
1bf489b7af open a control stream and send a SETTINGS frame as an H3 server 2019-05-21 15:28:38 +01:00
Marten Seemann
afa4615c4d make sure the TLS config contains the H3 ALPN token in server and client 2019-05-20 17:55:59 +01:00
Rangel Ivanov
de2c1f9cb8 http3/request: Fix URL parsing of leading double slashes after authority
Use url.ParseRequestURI instead of url.Parse.
Otherwise it will be interpreted as a path without a scheme
which will result in '//some_path' parsed as url.Host:somepath and empty
url.Path
2019-05-14 10:09:34 +03:00
Marten Seemann
520696dd0d Merge pull request #1900 from lucas-clemente/http3-request-tests
add tests for the HTTP/3 request
2019-05-13 16:06:32 +02:00
Marten Seemann
56111f31ac add tests for the HTTP/3 request 2019-05-13 12:16:33 +02:00
Marten Seemann
0a86224858 pass a string, not an error, to Session.CloseWithError 2019-05-13 08:04:24 +02:00
Marten Seemann
7d701893a2 fix reading of the EOF in the HTTP/3 server
Read([]byte{}) returns immediately, whereas Read([]byte{0}) blocks until
the stream is actually closed. This make as difference if the STREAM
frame with the FIN is received after the HTTP handler returned.
2019-05-08 15:41:56 +09:00
Marten Seemann
de6ab88437 add support for gzipped HTTP/3 requests 2019-04-16 17:26:03 +09:00
Marten Seemann
fa96c1a9ec fix flaky HTTP/3 server test 2019-04-16 12:41:07 +09:00
Marten Seemann
4f6d0e651a implement HTTP/3 2019-04-11 09:06:10 +09:00
Marten Seemann
1325909ab7 implement the HTTP/3 error codes 2019-04-11 09:06:10 +09:00