Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasToken (0.26 sec)

  1. src/net/http/transfer.go

    			return false
    		}
    		return true
    	}
    
    	return false
    }
    
    func (t *transferWriter) writeHeader(w io.Writer, trace *httptrace.ClientTrace) error {
    	if t.Close && !hasToken(t.Header.get("Connection"), "close") {
    		if _, err := io.WriteString(w, "Connection: close\r\n"); err != nil {
    			return err
    		}
    		if trace != nil && trace.WroteHeaderField != nil {
    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/cmd/go/internal/modindex/read.go

    		// mtime precision, reject caching if a file was read that
    		// is less than modTimeCutoff old.
    		//
    		// This is the same strategy used for hashing test inputs.
    		// See hashOpen in cmd/go/internal/test/test.go for the
    		// corresponding code.
    		if info.ModTime().After(cutoff) {
    			return cache.ActionID{}, ErrNotIndexed
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top