midas
midas copied to clipboard
Store parsed headers, e.g. content length
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.
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