MCPcopy Create free account
hub / github.com/bradfitz/exp-httpclient / Text

Method Text

http/status.go:44–49  ·  view source on GitHub ↗

Text returns the textual description of the status code. For HTTP/1.x responses, this is exactly what the server sent in the "reason-phrase" of the "status-line", per RFC 7230 Section 3.1.2. For HTTP/2 responses, which dropped reason phrases, or if the HTTP/1.x reason-phrase is empty, then Text re

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected