Test_Response_Cookie() — fiber Function Reference
Architecture documentation for the Test_Response_Cookie() function in response_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 3f22c12b_4646_9432_d1ba_1960d0838e60["Test_Response_Cookie()"] 9a680627_ad54_340e_3faa_64ead9b39aef["response_test.go"] 3f22c12b_4646_9432_d1ba_1960d0838e60 -->|defined in| 9a680627_ad54_340e_3faa_64ead9b39aef style 3f22c12b_4646_9432_d1ba_1960d0838e60 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
client/response_test.go lines 283–306
func Test_Response_Cookie(t *testing.T) {
t.Parallel()
server := startTestServer(t, func(app *fiber.App) {
app.Get("/", func(c fiber.Ctx) error {
c.Cookie(&fiber.Cookie{
Name: "foo",
Value: "bar",
})
return c.SendString("helo world")
})
})
defer server.stop()
client := New().SetDial(server.dial())
resp, err := AcquireRequest().
SetClient(client).
Get("http://example.com")
require.NoError(t, err)
require.Equal(t, "bar", string(resp.Cookies()[0].Value()))
resp.Close()
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Response_Cookie() do?
Test_Response_Cookie() is a function in the fiber codebase, defined in client/response_test.go.
Where is Test_Response_Cookie() defined?
Test_Response_Cookie() is defined in client/response_test.go at line 283.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free