Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for setCookies (0.13 sec)

  1. src/net/http/cookie_test.go

    }
    
    func (ho headerOnlyResponseWriter) WriteHeader(int) {
    	panic("NOIMPL")
    }
    
    func TestSetCookie(t *testing.T) {
    	m := make(Header)
    	SetCookie(headerOnlyResponseWriter(m), &Cookie{Name: "cookie-1", Value: "one", Path: "/restricted/"})
    	SetCookie(headerOnlyResponseWriter(m), &Cookie{Name: "cookie-2", Value: "two", MaxAge: 3600})
    	if l := len(m["Set-Cookie"]); l != 2 {
    		t.Fatalf("expected %d cookies, got %d", 2, l)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Handler.Stderr", Field, 7},
    		{"Request", Func, 0},
    		{"RequestFromMap", Func, 0},
    		{"Serve", Func, 0},
    	},
    	"net/http/cookiejar": {
    		{"(*Jar).Cookies", Method, 1},
    		{"(*Jar).SetCookies", Method, 1},
    		{"Jar", Type, 1},
    		{"New", Func, 1},
    		{"Options", Type, 1},
    		{"Options.PublicSuffixList", Field, 1},
    		{"PublicSuffixList", Type, 1},
    	},
    	"net/http/fcgi": {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  3. api/go1.1.txt

    pkg net/http/cookiejar, func New(*Options) (*Jar, error)
    pkg net/http/cookiejar, method (*Jar) Cookies(*url.URL) []*http.Cookie
    pkg net/http/cookiejar, method (*Jar) SetCookies(*url.URL, []*http.Cookie)
    pkg net/http/cookiejar, type Jar struct
    pkg net/http/cookiejar, type Options struct
    pkg net/http/cookiejar, type Options struct, PublicSuffixList PublicSuffixList
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top