parserResponseCookie() — fiber Function Reference
Architecture documentation for the parserResponseCookie() function in hooks.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 53cddf0a_375c_19c7_ffe8_0b40a72605a1["parserResponseCookie()"] 14cfc1be_1c8f_085d_1a4e_f0de9527aaba["hooks.go"] 53cddf0a_375c_19c7_ffe8_0b40a72605a1 -->|defined in| 14cfc1be_1c8f_085d_1a4e_f0de9527aaba style 53cddf0a_375c_19c7_ffe8_0b40a72605a1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
client/hooks.go lines 320–342
func parserResponseCookie(c *Client, resp *Response, req *Request) error {
var err error
for key, value := range resp.RawResponse.Header.Cookies() {
cookie := fasthttp.AcquireCookie()
if err = cookie.ParseBytes(value); err != nil {
fasthttp.ReleaseCookie(cookie)
break
}
cookie.SetKeyBytes(key)
resp.cookie = append(resp.cookie, cookie)
}
if err != nil {
return err
}
// Store cookies in the cookie jar if available.
if c.cookieJar != nil {
c.cookieJar.parseCookiesFromResp(req.RawRequest.URI().Host(), req.RawRequest.URI().Path(), resp.RawResponse)
}
return nil
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does parserResponseCookie() do?
parserResponseCookie() is a function in the fiber codebase, defined in client/hooks.go.
Where is parserResponseCookie() defined?
parserResponseCookie() is defined in client/hooks.go at line 320.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free