Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ProtoMinor (0.4 sec)

  1. src/net/http/response_test.go

    	return &Request{Method: method, Proto: "HTTP/1.1", ProtoMajor: 1, ProtoMinor: 1}
    }
    
    var respTests = []respTest{
    	// Unchunked response without Content-Length.
    	{
    		"HTTP/1.0 200 OK\r\n" +
    			"Connection: close\r\n" +
    			"\r\n" +
    			"Body here\n",
    
    		Response{
    			Status:     "200 OK",
    			StatusCode: 200,
    			Proto:      "HTTP/1.0",
    			ProtoMajor: 1,
    			ProtoMinor: 0,
    			Request:    dummyReq("GET"),
    			Header: Header{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 19:01:29 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  2. src/net/http/readrequest_test.go

    			"abcdef\n???",
    
    		&Request{
    			Method: "GET",
    			URL: &url.URL{
    				Scheme: "http",
    				Host:   "www.techcrunch.com",
    				Path:   "/",
    			},
    			Proto:      "HTTP/1.1",
    			ProtoMajor: 1,
    			ProtoMinor: 1,
    			Header: Header{
    				"Accept":           {"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
    				"Accept-Language":  {"en-us,en;q=0.5"},
    				"Accept-Encoding":  {"gzip,deflate"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 22:23:32 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. src/net/http/requestwrite_test.go

    	0: {
    		Req: Request{
    			Method: "GET",
    			URL: &url.URL{
    				Scheme: "http",
    				Host:   "www.techcrunch.com",
    				Path:   "/",
    			},
    			Proto:      "HTTP/1.1",
    			ProtoMajor: 1,
    			ProtoMinor: 1,
    			Header: Header{
    				"Accept":           {"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
    				"Accept-Charset":   {"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
    				"Accept-Encoding":  {"gzip,deflate"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:07:32 UTC 2022
    - 23.3K bytes
    - Viewed (0)
  4. src/net/http/httputil/dump_test.go

    	{
    		Req: &http.Request{
    			Method: "GET",
    			URL: &url.URL{
    				Scheme: "http",
    				Host:   "www.google.com",
    				Path:   "/search",
    			},
    			ProtoMajor:       1,
    			ProtoMinor:       1,
    			TransferEncoding: []string{"chunked"},
    		},
    
    		Body: []byte("abcdef"),
    
    		WantDump: "GET /search HTTP/1.1\r\n" +
    			"Host: www.google.com\r\n" +
    			"Transfer-Encoding: chunked\r\n\r\n" +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:34:07 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  5. src/net/http/response.go

    	return r.ProtoMajor > major ||
    		r.ProtoMajor == major && r.ProtoMinor >= minor
    }
    
    // Write writes r to w in the HTTP/1.x server response format,
    // including the status line, headers, body, and optional trailer.
    //
    // This method consults the following fields of the response r:
    //
    //	StatusCode
    //	ProtoMajor
    //	ProtoMinor
    //	Request.Method
    //	TransferEncoding
    //	Trailer
    //	Body
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. src/net/http/transfer.go

    		t.ProtoMajor = rr.ProtoMajor
    		t.ProtoMinor = rr.ProtoMinor
    		t.Close = shouldClose(t.ProtoMajor, t.ProtoMinor, t.Header, true)
    		isResponse = true
    		if rr.Request != nil {
    			t.RequestMethod = rr.Request.Method
    		}
    	case *Request:
    		t.Header = rr.Header
    		t.RequestMethod = rr.Method
    		t.ProtoMajor = rr.ProtoMajor
    		t.ProtoMinor = rr.ProtoMinor
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  7. src/net/http/cgi/host.go

    	// (e.g. Cookies) Which headers, if any, are copied into the
    	// second request?
    	newReq := &http.Request{
    		Method:     "GET",
    		URL:        url,
    		Proto:      "HTTP/1.1",
    		ProtoMajor: 1,
    		ProtoMinor: 1,
    		Header:     make(http.Header),
    		Host:       url.Host,
    		RemoteAddr: req.RemoteAddr,
    		TLS:        req.TLS,
    	}
    	h.PathLocationHandler.ServeHTTP(rw, newReq)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. internal/rest/client.go

    	if !ok && body != nil {
    		rc = io.NopCloser(body)
    	}
    	req := &http.Request{
    		Method:     http.MethodPost,
    		URL:        &u,
    		Proto:      "HTTP/1.1",
    		ProtoMajor: 1,
    		ProtoMinor: 1,
    		Header:     make(http.Header),
    		Body:       rc,
    		Host:       u.Host,
    	}
    	req = req.WithContext(ctx)
    	if body != nil {
    		switch v := body.(type) {
    		case *bytes.Buffer:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. src/net/http/clientserver_test.go

    func (tt h12Compare) normalizeRes(t *testing.T, res *Response, wantProto string) {
    	if res.Proto == wantProto || res.Proto == "HTTP/IGNORE" {
    		res.Proto, res.ProtoMajor, res.ProtoMinor = "", 0, 0
    	} else {
    		t.Errorf("got %q response; want %q", res.Proto, wantProto)
    	}
    	slurp, err := io.ReadAll(res.Body)
    
    	res.Body.Close()
    	res.Body = slurpResult{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
Back to top