Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/net/http/request.go

    func (r *Request) expectsContinue() bool {
    	return hasToken(r.Header.get("Expect"), "100-continue")
    }
    
    func (r *Request) wantsHttp10KeepAlive() bool {
    	if r.ProtoMajor != 1 || r.ProtoMinor != 0 {
    		return false
    	}
    	return hasToken(r.Header.get("Connection"), "keep-alive")
    }
    
    func (r *Request) wantsClose() bool {
    	if r.Close {
    		return true
    	}
    	return hasToken(r.Header.get("Connection"), "close")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/test/test.go

    			}
    			if a.Package.Root == "" || search.InDir(name, a.Package.Root) == "" {
    				// Do not recheck files outside the module, GOPATH, or GOROOT root.
    				break
    			}
    			fh, err := hashOpen(name)
    			if err != nil {
    				if cache.DebugTest {
    					fmt.Fprintf(os.Stderr, "testcache: %s: input file %s: %s\n", a.Package.ImportPath, name, err)
    				}
    				return cache.ActionID{}, err
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top