- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ErrNoCookie (0.13 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) -
api/go1.txt
pkg net/http, var ErrLineTooLong error pkg net/http, var ErrMissingBoundary *ProtocolError pkg net/http, var ErrMissingContentLength *ProtocolError pkg net/http, var ErrMissingFile error pkg net/http, var ErrNoCookie error pkg net/http, var ErrNoLocation error pkg net/http, var ErrNotMultipart *ProtocolError pkg net/http, var ErrNotSupported *ProtocolError pkg net/http, var ErrShortBody *ProtocolError
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)