- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ErrNoCookie (0.16 sec)
-
src/net/http/request.go
if name == "" { return []*Cookie{} } return readCookies(r.Header, name) } // ErrNoCookie is returned by Request's Cookie method when a cookie is not found. var ErrNoCookie = errors.New("http: named cookie not present") // Cookie returns the named cookie provided in the request or // [ErrNoCookie] if not found. // If multiple cookies match the given name, only one cookie will // be returned.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 49.4K bytes - Viewed (0) -
src/net/http/request_test.go
} if g := b.String(); g != expectContent { t.Errorf("contents = %q, want %q", g, expectContent) } return f } // Issue 53181: verify Request.Cookie return the correct Cookie. // Return ErrNoCookie instead of the first cookie when name is "". func TestRequestCookie(t *testing.T) { for _, tt := range []struct { name string value string expectedErr error }{ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"ErrHeaderTooLong", Var, 0}, {"ErrHijacked", Var, 0}, {"ErrLineTooLong", Var, 0}, {"ErrMissingBoundary", Var, 0}, {"ErrMissingContentLength", Var, 0}, {"ErrMissingFile", Var, 0}, {"ErrNoCookie", Var, 0}, {"ErrNoLocation", Var, 0}, {"ErrNotMultipart", Var, 0}, {"ErrNotSupported", Var, 0}, {"ErrSchemeMismatch", Var, 21}, {"ErrServerClosed", Var, 8}, {"ErrShortBody", Var, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)