Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for trimStrings (0.33 sec)

  1. internal/logger/logger.go

    		trimStrings = append(trimStrings, filepath.Join(goRootString, "src")+string(filepath.Separator))
    	}
    
    	for _, defaultgoPathString := range defaultgoPathList {
    		trimStrings = append(trimStrings, filepath.Join(defaultgoPathString, "src")+string(filepath.Separator))
    	}
    
    	for _, defaultgoRootString := range defaultgoRootList {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. src/net/http/cookie.go

    func ParseSetCookie(line string) (*Cookie, error) {
    	parts := strings.Split(textproto.TrimString(line), ";")
    	if len(parts) == 1 && parts[0] == "" {
    		return nil, errBlankCookie
    	}
    	parts[0] = textproto.TrimString(parts[0])
    	name, value, ok := strings.Cut(parts[0], "=")
    	if !ok {
    		return nil, errEqualNotFoundInCookie
    	}
    	name = textproto.TrimString(name)
    	if !isCookieNameValid(name) {
    		return nil, errInvalidCookieName
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. src/net/http/fs.go

    	noOverlap := false
    	for _, ra := range strings.Split(s[len(b):], ",") {
    		ra = textproto.TrimString(ra)
    		if ra == "" {
    			continue
    		}
    		start, end, ok := strings.Cut(ra, "-")
    		if !ok {
    			return nil, errors.New("invalid range")
    		}
    		start, end = textproto.TrimString(start), textproto.TrimString(end)
    		var r httpRange
    		if start == "" {
    			// If no start is specified, end specifies the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  4. src/net/http/header.go

    			// way to provide the error back to the server
    			// handler, so just drop invalid headers instead.
    			continue
    		}
    		for _, v := range kv.values {
    			v = headerNewlineToSpace.Replace(v)
    			v = textproto.TrimString(v)
    			for _, s := range []string{kv.key, ": ", v, "\r\n"} {
    				if _, err := ws.WriteString(s); err != nil {
    					headerSorterPool.Put(sorter)
    					return err
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/net/http/transfer.go

    		// Content-Length headers if they differ in value.
    		// If there are dups of the value, remove the dups.
    		// See Issue 16490.
    		first := textproto.TrimString(contentLens[0])
    		for _, ct := range contentLens[1:] {
    			if first != textproto.TrimString(ct) {
    				return 0, fmt.Errorf("http: message cannot contain multiple Content-Length headers; got %q", contentLens)
    			}
    		}
    
    		// deduplicate Content-Length
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  6. src/net/http/cgi/host.go

    			h.printf("cgi: bogus header line: %s", line)
    			continue
    		}
    		if !httpguts.ValidHeaderFieldName(header) {
    			h.printf("cgi: invalid header name: %q", header)
    			continue
    		}
    		val = textproto.TrimString(val)
    		switch {
    		case header == "Status":
    			if len(val) < 3 {
    				h.printf("cgi: bogus status (short): %q", val)
    				return
    			}
    			code, err := strconv.Atoi(val[0:3])
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. 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)
  8. src/net/http/server.go

    func foreachHeaderElement(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)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top