Skip to content

Add support for http trailers and full range keys #66

@codefromthecrypt

Description

@codefromthecrypt

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions