Add gun:trailers/3 for HTTP/1.1 and HTTP/2#359
Conversation
10024df to
0fb5e39
Compare
|
This will need to be made to work with HTTP/3 as well. It likely already works if you do the same as HTTP/2. Tests will confirm. Worst case, using trailers with HTTP/3 should trigger an error (there's plenty of things not implemented with HTTP/3 so if tests show it doesn't work it's fine to error out for now). |
|
For HTTP/3, a case that errors is probably the easiest (for me at least 😅) for now. It looks like we need to access/update the |
|
Right if it's not the same as HTTP/2 let's error out for now in gun_http3. |
0fb5e39 to
6ce2528
Compare
|
Sorry for the really long delay 😅. I ran into (what I think is?) a bug in cowlib for HTTP/2. I sent a PR over there with the fix, ninenines/cowlib#149. |
|
Ultimately I ended up not using this change since I'm targetting S3 and it has a weird I think (Surely someone must know why S3 does this weird content encoding thing. I'll go complain 🙂) Update: it's a purely historical artifact, they invented |
|
Yes I think it will be good to have in the next release, whenever it happens. I am working on a large H3/WT update for Cowboy that will also be done in Gun and will include other PRs with that. |
This is a work-in-progress for adding
gun:trailers/3. So far I adapted whatdata/7is doing in HTTP/1 and HTTP/2 - I still need to look at adding test cases.Closes #356