Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for 7230 (0.05 sec)

  1. src/net/http/transfer.go

    func (t *transferReader) protoAtLeast(m, n int) bool {
    	return t.ProtoMajor > m || (t.ProtoMajor == m && t.ProtoMinor >= n)
    }
    
    // bodyAllowedForStatus reports whether a given response status code
    // permits a body. See RFC 7230, section 3.3.
    func bodyAllowedForStatus(status int) bool {
    	switch {
    	case status >= 100 && status <= 199:
    		return false
    	case status == 204:
    		return false
    	case status == 304:
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  2. src/net/textproto/reader.go

    		}
    	}
    }
    
    // noValidation is a no-op validation func for readContinuedLineSlice
    // that permits any lines.
    func noValidation(_ []byte) error { return nil }
    
    // mustHaveFieldNameColon ensures that, per RFC 7230, the
    // field-name is on a single line, so the first line must
    // contain a colon.
    func mustHaveFieldNameColon(line []byte) error {
    	if bytes.IndexByte(line, ':') < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. src/net/http/httputil/reverseproxy.go

    func removeHopByHopHeaders(h http.Header) {
    	// RFC 7230, section 6.1: Remove headers listed in the "Connection" header.
    	for _, f := range h["Connection"] {
    		for _, sf := range strings.Split(f, ",") {
    			if sf = textproto.TrimString(sf); sf != "" {
    				h.Del(sf)
    			}
    		}
    	}
    	// RFC 2616, section 13.5.1: Remove a set of known hop-by-hop headers.
    	// This behavior is superseded by the RFC 7230 Connection header, but
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 23:37:42 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. test/inline_big.go

    	a[701] = 0
    	a[702] = 0
    	a[703] = 0
    	a[704] = 0
    	a[705] = 0
    	a[706] = 0
    	a[707] = 0
    	a[708] = 0
    	a[709] = 0
    	a[710] = 0
    	a[711] = 0
    	a[712] = 0
    	a[713] = 0
    	a[714] = 0
    	a[715] = 0
    	a[716] = 0
    	a[717] = 0
    	a[718] = 0
    	a[719] = 0
    	a[720] = 0
    	a[721] = 0
    	a[722] = 0
    	a[723] = 0
    	a[724] = 0
    	a[725] = 0
    	a[726] = 0
    	a[727] = 0
    	a[728] = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 18 11:58:37 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  5. src/net/http/readrequest_test.go

    			Host:          "test",
    			RequestURI:    "//user@host/is/actually/a/path/",
    		},
    
    		noBodyStr,
    		noTrailer,
    		noError,
    	},
    
    	// Tests a bogus absolute-path on the Request-Line (RFC 7230 section 5.3.1)
    	{
    		"GET ../../../../etc/passwd HTTP/1.1\r\n" +
    			"Host: test\r\n\r\n",
    		nil,
    		noBodyStr,
    		noTrailer,
    		`parse "../../../../etc/passwd": invalid URI for request`,
    	},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 22:23:32 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. src/net/http/response_test.go

    				"Content-Length": {"0"},
    			},
    			Close:         false,
    			ContentLength: 0,
    		},
    
    		"",
    	},
    
    	// Status line without a Reason-Phrase, but trailing space.
    	// (permitted by RFC 7230, section 3.1.2)
    	{
    		"HTTP/1.0 303 \r\n\r\n",
    		Response{
    			Status:        "303 ",
    			StatusCode:    303,
    			Proto:         "HTTP/1.0",
    			ProtoMajor:    1,
    			ProtoMinor:    0,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 19:01:29 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  7. src/net/http/response.go

    	ProtoMajor int    // e.g. 1
    	ProtoMinor int    // e.g. 0
    
    	// Header maps header keys to values. If the response had multiple
    	// headers with the same key, they may be concatenated, with comma
    	// delimiters.  (RFC 7230, section 3.2.2 requires that multiple headers
    	// be semantically equivalent to a comma-delimited sequence.) When
    	// Header values are duplicated by other fields in this struct (e.g.,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/net/textproto/reader_test.go

    	wantCode int
    	wantMsg  string
    }
    
    var readResponseTests = []readResponseTest{
    	{"230-Anonymous access granted, restrictions apply\n" +
    		"Read the file README.txt,\n" +
    		"230  please",
    		23,
    		230,
    		"Anonymous access granted, restrictions apply\nRead the file README.txt,\n please",
    	},
    
    	{"230 Anonymous access granted, restrictions apply\n",
    		23,
    		230,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  9. src/crypto/tls/testdata/Server-TLSv13-ClientAuthRequestedAndEd25519Given

    00000080  98 0a 6d 5b fd c6 0c ad  02 7f 0c f8 b4 be fe 5a  |..m[...........Z|
    00000090  fb 22 00 08 09 5d c7 47  76 89 e5 06 d1 90 5b e6  |."...].Gv.....[.|
    000000a0  63 64 06 28 37 d9 1b e9  0d 27 45 f7 72 30 d7 f2  |cd.(7....'E.r0..|
    000000b0  db 8e bf 95 97 29 43 e7  16 bf a0 59 9c fa d9 59  |.....)C....Y...Y|
    000000c0  a0 a6 9b 1f b5 74 80 87  d0 61 2f d5 a5 ac dd b2  |.....t...a/.....|
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:14:50 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  10. src/net/mail/message.go

    	}, nil
    }
    
    // readHeader reads the message headers from r.
    // This is like textproto.ReadMIMEHeader, but doesn't validate.
    // The fix for issue #53188 tightened up net/textproto to enforce
    // restrictions of RFC 7230.
    // This package implements RFC 5322, which does not have those restrictions.
    // This function copies the relevant code from net/textproto,
    // simplified for RFC 5322.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top