View definition

(HostClient).DisableHeaderNamesNormalizing

Defined in github.com/valyala/fasthttp/client.go

Description

Header names are passed as-is without normalization if this option is set.

Disabled header names' normalization may be useful only for proxying responses to other clients expecting case-sensitive header names. See https://github.com/valyala/fasthttp/issues/57 for details.

By default request and response header names are normalized, i.e. The first letter and the first letters following dashes are uppercased, while all the other letters are lowercased. Examples:

* HOST -> Host
* content-type -> Content-Type
* cONTENT-lenGTH -> Content-Length

DisableHeaderNamesNormalizing is referenced in 1 repository

github.com/valyala/fasthttp