- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for trimStrings (0.44 sec)
-
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) -
src/net/http/request.go
userAgent := defaultUserAgent if r.Header.has("User-Agent") { userAgent = r.Header.Get("User-Agent") } if userAgent != "" { userAgent = headerNewlineToSpace.Replace(userAgent) userAgent = textproto.TrimString(userAgent) _, err = fmt.Fprintf(w, "User-Agent: %s\r\n", userAgent) if err != nil { return err } if trace != nil && trace.WroteHeaderField != nil {
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/server.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 123.4K bytes - Viewed (0) -
src/net/http/h2_bundle.go
func http2foreachHeaderElement(v string, fn func(string)) { v = textproto.TrimString(v) if v == "" { return } if !strings.Contains(v, ",") { fn(v) return } for _, f := range strings.Split(v, ",") { if f = textproto.TrimString(f); f != "" { fn(f) } } } // From http://httpwg.org/specs/rfc7540.html#rfc.section.8.1.2.2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 364.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"NewReader", Func, 0}, {"NewWriter", Func, 0}, {"Pipeline", Type, 0}, {"ProtocolError", Type, 0}, {"Reader", Type, 0}, {"Reader.R", Field, 0}, {"TrimBytes", Func, 1}, {"TrimString", Func, 1}, {"Writer", Type, 0}, {"Writer.W", Field, 0}, }, "net/url": { {"(*Error).Error", Method, 0}, {"(*Error).Temporary", Method, 6}, {"(*Error).Timeout", Method, 6},
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.1.txt
pkg net/rpc, const DefaultDebugPath = "/debug/rpc" pkg net/rpc, const DefaultRPCPath = "/_goRPC_" pkg net/smtp, method (*Client) Hello(string) error pkg net/textproto, func TrimBytes([]uint8) []uint8 pkg net/textproto, func TrimString(string) string pkg os (darwin-386), const DevNull = "/dev/null" pkg os (darwin-386), const O_APPEND = 8 pkg os (darwin-386), const O_CREATE = 512 pkg os (darwin-386), const O_EXCL = 2048
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 2.6M bytes - Viewed (0)