Get returns the HTTP request header specified by field. Field names are case-insensitive Returned value is only valid within the handler. Do not store any references. Make copies or use the Immutable setting instead.
(key string, defaultValue ...string)
| 470 | // Returned value is only valid within the handler. Do not store any references. |
| 471 | // Make copies or use the Immutable setting instead. |
| 472 | func (r *DefaultReq) Get(key string, defaultValue ...string) string { |
| 473 | return GetReqHeader(r.c, key, defaultValue...) |
| 474 | } |
| 475 | |
| 476 | // GetReqHeader returns the HTTP request header specified by filed. |
| 477 | // This function is generic and can handle different headers type values. |
no test coverage detected