Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-01-09 | Add function gun:stream_info/2 | Loïc Hoguin | |
2019-01-06 | Lowercase header names automatically and accept more types | Loï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-05 | Don't send empty data chunks | Loïc Hoguin | |
This was a bug in the case of HTTP/1.1 and an inconvenience in the case of HTTP/2. | |||
2019-01-05 | Ensure Gun retries connecting immediately | Loïc Hoguin | |
2019-01-03 | Update copyright years | Loïc Hoguin | |
2019-01-03 | Consolidate origin server test helpers | Loïc Hoguin | |
Also fixes an issue with switch_transport introduced when converting the Gun process to gen_statem. | |||
2018-12-31 | Disable keepalive by default for HTTP/1.1 | Loïc Hoguin | |
This is safer as servers may reject too many extra empty lines. | |||
2018-12-31 | Separate request/4,5,6 into headers/4,5 and request/5,6 | Loï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-19 | Convert the gun process to gen_statem | Loïc Hoguin | |
2018-10-30 | Switch to cow_http2_machine for HTTP/2 | Loï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-01 | Document the protocols option for Websocket | Michal Piotrowski | |
2018-09-26 | Remove gun:dbg_send_raw/2 | Loïc Hoguin | |
The same can now be achieved using gun:info to retrieve the socket. This function was not documented and was only used in the old Cowboy test suite. | |||
2018-09-26 | Add the socket in the gun:info map | Loïc Hoguin | |
This is used by Cowboy for tests. | |||
2018-09-26 | Keep track of the intermediaries the connection go through | Loïc Hoguin | |
Also augment the CONNECT tests to confirm that the intermediaries are accounted for. | |||
2018-09-20 | Use ALPN when proxying TLS connections using CONNECT | Loïc Hoguin | |
This fixes HTTP/2 over TLS connections. The protocol destination option has been deprecated in favor of a protocols option. | |||
2018-09-17 | Add HTTP/1.1 CONNECT support | Loï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-06 | Fix some whitespace | Loïc Hoguin | |
2018-07-27 | Fix OTP 21 warnings | Loïc Hoguin | |
2018-06-04 | Update copyright years | Loïc Hoguin | |
2018-06-04 | Remove the dependency on Ranch | Loïc Hoguin | |
We instead of two new modules, gun_tcp and gun_tls. They only have 6 functions so far, much less than what Ranch provided before. Also renames ssl to tls where applicable. It's still possible to use the ssl transport option but it's now undocumented. | |||
2018-06-03 | Change messages to gun_upgrade and gun_ws with stream reference | Loïc Hoguin | |
2018-06-03 | Also flush trailers | Loïc Hoguin | |
2018-06-03 | Fill in the options types instead of using map() | Loïc Hoguin | |
2018-06-03 | Fix the inet:ip_address() type | Loïc Hoguin | |
2018-05-15 | Allow IP tuple for host #152 | Seudin Kasumovic | |
2018-01-22 | Add missing gun_inform clauses | Andrei Nesterov | |
2017-12-16 | Add support for unix sockets | michael-coles | |
2017-12-14 | Change the {gone, Reason} to {shutdown, Reason} plus small fixes | Loïc Hoguin | |
The reason for this change is to avoid annoying supervisor logs when SASL logging is enabled. | |||
2017-11-15 | Add preliminary support for trailers | Loïc Hoguin | |
The code is definitely not the best, but as long as it doesn't break anything it should be OK for now. | |||
2017-10-29 | Add support for informational responses | Loïc Hoguin | |
2017-10-06 | Don't error out when the owner is gone normally | Loïc Hoguin | |
2017-08-14 | Allow an infinity keepalive value1.0.0-pre.4 | Loïc Hoguin | |
This disables the keepalive mechanism entirely. | |||
2017-08-12 | Fix a warning preventing compilation | Loïc Hoguin | |
2017-08-11 | Add missing Websocket clause detecting owner is gone | Loïc Hoguin | |
2017-05-19 | Ensure the stacktrace is passed when crashing | Loïc Hoguin | |
2017-05-01 | Add gun:info/11.0.0-pre.3 | Loï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-01 | Add support for choosing a process to reply to | Andrei Nesterov | |
2017-04-30 | Monitor owner and terminate when it dies | Juan Facorro | |
2017-04-30 | Allow infinity for connect_timeout | Loïc Hoguin | |
2017-04-30 | Fix retry_timeout value check | Loïc Hoguin | |
2017-04-30 | Add connect timeout | sugus-seu | |
2017-04-30 | Ignore errors from Transport:setopts/2 | Yuki Ito | |
2017-04-30 | Propagate the last connection failure reason | Loïc Hoguin | |
Based on a patch by Pablo Polvorin. Thanks! | |||
2017-04-30 | Fix the retry=0 case, add general gun test suite | Loïc Hoguin | |
2017-04-27 | Add content handlers and built-in SSE support | Loï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. | |||
2017-01-02 | Implement HTTP/2 server push | Loïc Hoguin | |
2016-05-27 | Initial HTTP/2 support | Loïc Hoguin | |
A number of things are not implemented, but this is enough to connect to Twitter and get a response sent back. It also currently doesn't have tests. | |||
2015-08-17 | Fix ssl:negotiated_next_protocol/1 is deprecated. | Maxim Krentovskiy | |
2015-04-10 | Add headers to gun_ws_upgrade message | Loïc Hoguin | |
Also improves the code and documentation about this message. It was incorrectly specified that a gun_ws_upgrade message could be sent on error; instead a gun_response is sent. | |||
2015-04-10 | Add Websocket options | Loïc Hoguin | |
Allow passing Websocket options through either open or ws_upgrade. Document ws_upgrade/4. |