Marten Seemann
65cea185bd
use a finalizer to close the h2quic.RoundTripper
...
The finalizer is executed when the RoundTripper is garbage collected.
This is not a perfect solution, since there are situations when an
unneeded RoundTripper is not garbage collected, e.g. when the program
exits before the GC ran. In those cases, the server will run into the
idle timeout and eventually close the connection on its side.
2017-07-12 19:20:21 +07:00
Marten Seemann
bf6030a855
implement a function to close the h2quic.RoundTripper
...
h2quic.RoundTripper.Close() closes all QUIC connections that this
roundtripper has used.
2017-07-12 18:56:47 +07:00
Marten Seemann
ee6ca8dfb4
expose the quic.Config in the h2quic.RoundTripper
2017-07-10 22:00:03 +07:00
Marten Seemann
cb81a95ceb
make the dependency-injected dialAddr in h2quic.client a global variable
...
It's only used for testing, so there's no need to have in each
h2quic.client instance.
2017-07-10 21:59:58 +07:00
Marten Seemann
9df3380bc6
rename the h2quic.QuicRoundTripper to h2quic.RoundTripper
2017-06-26 19:14:41 +02:00
Marten Seemann
c122428cb6
simply the dialing in the h2quic client
...
Fixes #620 .
Dialing is now done lazily, when a request is executed.
2017-06-04 09:41:51 +02:00
Marten Seemann
9054e5205f
don't pass the roundtripper to the h2quic client
2017-06-02 23:08:14 +02:00
Marten Seemann
96edca5219
privatize the client, only expose Dial functions
2017-02-22 23:03:09 +07:00
Marten Seemann
268841f0cc
add a TLSClientConfig to the QUIC RoundTripper
...
fixes #407
2017-02-04 10:28:00 +07:00
Marten Seemann
e3b34f2120
implement sending of the request body
2017-01-14 19:00:22 +07:00
Marten Seemann
1854279bb5
reject requests with an invalid request method
2017-01-14 18:58:46 +07:00
Marten Seemann
feec325083
validate HTTP headers and request scheme in RoundTripper
2017-01-14 18:58:46 +07:00
Marten Seemann
1061bd4492
reject requests with missing URL or Header in the RoundTripper
2017-01-14 18:58:46 +07:00
Marten Seemann
128bad04e5
add option to disable compresson to QuicRoundTripper
2017-01-14 18:58:45 +07:00
Marten Seemann
40a6577dc3
implement a basic QUIC RoundTripper
2017-01-14 18:58:44 +07:00