Vinelab / http

A smart, simple and fault-tolerant HTTP client for sending and receiving JSON and XML
57 stars 30 forks source link

Make header() method case-insensitive #30

Open ybr-nx opened 4 years ago

ybr-nx commented 4 years ago

Each header field consists of a case-insensitive field name followed by a colon (":"), optional leading whitespace, the field value, and optional trailing whitespace.

HTTP 1/1 - RFC7230

Just as in HTTP/1.x, header field names are strings of ASCII characters that are compared in a case-insensitive fashion.

HTTP2 - RFC7540