cowlib
cowlib copied to clipboard
Support library for manipulating Web protocols.
Hi The "Version=" attribute in the set-cookie header is obsolete (and may even confuse some newer user agents). I propose removing it, as attached. Cheers, /Sebastian
When the client does not provide the "client_max_window_bits" option, the server must reserve the max size. Currently, if the server provides the option `client_max_window_bits` with something less than 15 and...
According to [RFC 7230, section 5.4](https://tools.ietf.org/html/rfc7230#section-5.4), the `host` header should accept: ``` Host = uri-host [ ":" port ] ; Section 2.7.1 ``` and `uri-host` is defined to be: ```...
After called gun:cancel, the corresponding stream would be removed in the state machine. But it's possible it's response on the way, when gun receive the response, will disconnect the tcp...
Instead of calling `cow_hpack:init/0` they'd call the `/1` variant. The default MUST be lower than the protocol default otherwise things may not work. This doesn't apply to the decoder since...
Hi, Is there any update of adding support of no/never indexing for http/2 hpack header encoding? https://github.com/ninenines/cowlib/blob/0f5c2f8922c89c58f51696cce690245cbdc5f327/src/cow_hpack.erl#L544 Reference https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-header-compression 6.2.2. Literal Header Field without Indexing . . . . ....
This is to be used primarily by a client before initiating a new stream so that it can respect the setting from the server. I've tested in in a draft...
Adds an `approx_max` option to control memory usage. This is approx because `zlib:safeInflate` chunk sizes are not configurable so the size won't match up exactly, and we also don't check...