aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2019-01-09Add function gun:stream_info/2Loïc Hoguin
2019-01-06Lowercase header names automatically and accept more typesLoïc Hoguin
Header names can now be provided as binary, string or atom and Gun no longer requires them to be in lowercase. The list of headers can also be provided as a map as well.
2019-01-06Don't output unrelated errors in successful testsLoïc Hoguin
We need to close the Gun connection to avoid owner_gone errors.
2019-01-06Add a timeout to prevent an intermittent failureLoïc Hoguin
2019-01-06Fix KilledStreams value for HTTP for connection: close responsesLoïc Hoguin
2019-01-06Increase the connect_h2 test delayLoïc Hoguin
When it's testing h2 it has to do both ssl and h2 handshakes and that can take a while.
2019-01-05Fix atom hostnamesLoïc Hoguin
2019-01-05Fix transfer-encoding precedence over content-lengthLoïc Hoguin
2019-01-05Don't send empty data chunksLoïc Hoguin
This was a bug in the case of HTTP/1.1 and an inconvenience in the case of HTTP/2.
2019-01-05Ensure Gun retries connecting immediatelyLoïc Hoguin
2019-01-03Update copyright yearsLoïc Hoguin
2019-01-03Consolidate origin server test helpersLoïc Hoguin
Also fixes an issue with switch_transport introduced when converting the Gun process to gen_statem.
2019-01-02Don't send the default port in the host header for HTTP/2Loïc Hoguin
2019-01-02Don't send the default port in the host header for HTTP/1.1Loïc Hoguin
2018-12-31Separate request/4,5,6 into headers/4,5 and request/5,6Loïc Hoguin
This cleaner separation gets rid of the implicit body check that was causing issues for many users. Now the body is either given explicitly or it is expected via future gun:data/3 calls.
2018-12-31Fix stripping stream reference in gun_httpPiotr Bober
An invalid stream reference (the websocket tuple wrapper) was sent in the gun_data message. Also moves autobahn to its own test suite.
2018-12-19Get rid of duplicates in h2specd outputLoïc Hoguin
I'm not sure what caused the duplicates to appear, but they should be gone now.
2018-10-30Switch to cow_http2_machine for HTTP/2Loïc Hoguin
A common state machine for Gun and Cowboy will be easier to maintain. This fixes numerous issues including some test failures that were hidden because the h2specd_SUITE was flawed. We temporarily depend on Cowlib master until a new version is released.
2018-10-11Remove twitter_SUITELoïc Hoguin
This test suite is not really necessary anymore now that we have h2specd_SUITE and others.
2018-10-11Make all the gun_SUITE test self-reliableLoïc Hoguin
Some intermittent failures occurred because of trying to connect to google.com or echo.websocket.org.
2018-09-28Improve logging in the h2specd_SUITELoïc Hoguin
2018-09-28Run the h2specd tests in a new test suiteLoïc Hoguin
A number of tests are currently failing.
2018-09-26Add a timer:sleep to make a test pass reliablyLoïc Hoguin
2018-09-26Don't crash on HEADERS frames with PRIORITY flag setLoïc Hoguin
2018-09-26Don't send keep-alive while waiting for CONNECT responsesLoïc Hoguin
Otherwise this can mess up the underlying protocol we will switch to, like TLS or HTTP/2.
2018-09-26Keep track of the intermediaries the connection go throughLoïc Hoguin
Also augment the CONNECT tests to confirm that the intermediaries are accounted for.
2018-09-20Use ALPN when proxying TLS connections using CONNECTLoïc Hoguin
This fixes HTTP/2 over TLS connections. The protocol destination option has been deprecated in favor of a protocols option.
2018-09-17Improve one of the CONNECT testsLoïc Hoguin
This caused failures on OSX.
2018-09-17Add HTTP/1.1 CONNECT supportLoïc Hoguin
Gun can now be used to connect through TCP HTTP/1.1 proxies using all supported protocols. It is also possible to create a tunnel through multiple proxies. Also updates Cowlib to 2.6.0.
2018-08-09Add an SSE test for lone id: linesLoïc Hoguin
2018-08-06Make sse_SUITE work for older OTP versionsLoïc Hoguin
2018-08-06Rewrite the SSE suite using CowboyLoïc Hoguin
2018-06-04Update copyright yearsLoïc Hoguin
2018-06-03Rename gun_data and gun_sse to gun_data_h and gun_sse_hLoïc Hoguin
2018-06-03Change messages to gun_upgrade and gun_ws with stream referenceLoïc Hoguin
2017-12-16Add support for unix socketsmichael-coles
2017-12-14Silence export_all warningsLoïc Hoguin
2017-12-14Change the {gone, Reason} to {shutdown, Reason} plus small fixesLoïc Hoguin
The reason for this change is to avoid annoying supervisor logs when SASL logging is enabled.
2017-10-06Don't error out when the owner is gone normallyLoïc Hoguin
2017-09-02Fix gun_http2:handle/2 when goaway is receivedEduardo Gurgel
2017-08-14Allow an infinity keepalive value1.0.0-pre.4Loïc Hoguin
This disables the keepalive mechanism entirely.
2017-08-12Remove SPDY; document HTTP/2Loïc Hoguin
I just replaced "SPDY" with "HTTP/2" in the documentation. I suspect that's all that's needed, but if there's something off we can fix it later.
2017-08-11Add missing Websocket clause detecting owner is goneLoïc Hoguin
2017-08-11Fix testsLoïc Hoguin
2017-05-01Add gun:info/11.0.0-pre.3Loïc Hoguin
So far only for getting the socket ip and port on the local side. More values may be added later on.
2017-05-01Add transform_header_name http option.Gustaf Sjoberg
2017-05-01Add support for choosing a process to reply toAndrei Nesterov
2017-04-30Monitor owner and terminate when it diesJuan Facorro
2017-04-30Add missing gun_SUITE test suiteLoïc Hoguin
Forgot to commit it earlier. My bad!
2017-04-27Add content handlers and built-in SSE supportLoïc Hoguin
Content handlers are a chain of modules implementing callbacks that receive the body of responses and may modify it (for example for decompressing the content) or act upon it (like sending a message to the owner process. The gun_sse content handler module can be used to translate text/event-stream events on the fly and deliver them to the owner process as a {gun_sse...} message. This feature is currently not documented and is only tested against a public server. It requires an up to date Cowlib.