midas icon indicating copy to clipboard operation
midas copied to clipboard

Store parsed headers, e.g. content length

Open CrowdHailer opened this issue 5 years ago • 1 comments

It's only a valid content-length if correctly parses as an integer. Is there a way to save this fact in the request type.

CrowdHailer avatar Apr 22 '20 14:04 CrowdHailer

https://tools.ietf.org/html/rfc2616 defines general headers request/response headers and entity headers. extension headers are ones that are not specified in the spec. It could be possible to specify an enum of headers than includes entity header for unknown headers

CrowdHailer avatar Apr 28 '20 14:04 CrowdHailer