Update ctx.md

Add additional documentation for GetRespHeaders
pull/2550/head
RW 2023-07-20 16:43:49 +02:00 committed by GitHub
parent f1ff0f45c8
commit 3b08646abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -564,6 +564,9 @@ Returns the HTTP response headers.
func (c *Ctx) GetRespHeaders() 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)
## GetRouteURL
Generates URLs to named routes, with parameters. URLs are relative, for example: "/user/1831"