Update ctx.md

Add hint for references to GetReqHeaders
pull/2550/head
RW 2023-07-20 16:47:39 +02:00 committed by GitHub
parent 3b08646abf
commit c0116f445f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -532,6 +532,9 @@ Returns the HTTP request headers.
func (c *Ctx) GetReqHeaders() map[string]string
```
> _Returned value is only valid within the handler. Do not store any references.
> Make copies or use the_ [_**`Immutable`**_](ctx.md) _setting instead._ [_Read more..._](../#zero-allocation)
## GetRespHeader
Returns the HTTP response header specified by the field.