Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for iota (0.04 sec)

  1. src/net/http/server.go

    const (
    	// StateNew represents a new connection that is expected to
    	// send a request immediately. Connections begin at this
    	// state and then transition to either StateActive or
    	// StateClosed.
    	StateNew ConnState = iota
    
    	// StateActive represents a connection that has read 1 or more
    	// bytes of a request. The Server.ConnState hook for
    	// StateActive fires before the request has entered a handler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    func BenchmarkServerHandlerTypeLen(b *testing.B) {
    	benchmarkHandler(b, HandlerFunc(func(w ResponseWriter, r *Request) {
    		w.Header().Set("Content-Type", "text/html")
    		w.Header().Set("Content-Length", strconv.Itoa(len(response)))
    		w.Write(response)
    	}))
    }
    
    // A Content-Type is set, but no length. No sniffing, but will count the Content-Length.
    func BenchmarkServerHandlerNoLen(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/exec.go

    func allowedVersion(v string) bool {
    	// Special case: no requirement.
    	if v == "" {
    		return true
    	}
    	return gover.Compare(gover.Local(), v) >= 0
    }
    
    const (
    	needBuild uint32 = 1 << iota
    	needCgoHdr
    	needVet
    	needCompiledGoFiles
    	needCovMetaFile
    	needStale
    )
    
    // build is the action for building a single package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
Back to top