Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for http2bodyAllowedForStatus (0.39 sec)

  1. src/net/http/h2_bundle.go

    		panic("out of range")
    	}
    	return uint32(v)
    }
    
    // bodyAllowedForStatus reports whether a given response status code
    // permits a body. See RFC 7230, section 3.3.
    func http2bodyAllowedForStatus(status int) bool {
    	switch {
    	case status >= 100 && status <= 199:
    		return false
    	case status == 204:
    		return false
    	case status == 304:
    		return false
    	}
    	return true
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
Back to top