-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
fasthttp implements trailing headers as a part of the http request and response headers objects. To ensure we can use these without relying on fasthttp API, we need a few more functions, which I'm happy to implement after #65 is in. I need this to help support the new http-wasm host, which has glitches both in trailers and also multiple header values.
- GetKeys and GetKeysTrailer, to return all keys including ones special-cased internally by fasthttp
- this is much easier than having users do a range function, as well more precise to unit test
- GetTrailer to return a single trailer
- AddTrailer to add a single trailer field for a key
- SetTrailer to overwrite a trailer with a single value
- DelTrailer to delete all trailers for a key
- GetAll and GetAllTrailer function to return all values for a key
- this is much easier than having users do a range function, as well more precise to unit test
cc @taoyuanyuan I'll backfill unit tests and polish up stuff, but probably this should be done separate from the version bump
Metadata
Metadata
Assignees
Labels
No labels