From 3b08646abf1d85c53f23cfdc56fdbabd1e7397bd Mon Sep 17 00:00:00 2001 From: RW Date: Thu, 20 Jul 2023 16:43:49 +0200 Subject: [PATCH] Update ctx.md Add additional documentation for GetRespHeaders --- docs/api/ctx.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/api/ctx.md b/docs/api/ctx.md index f04e34fa..3a5efab7 100644 --- a/docs/api/ctx.md +++ b/docs/api/ctx.md @@ -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"