MCPcopy
hub / github.com/valyala/fasthttp / StatusCode

Method StatusCode

http.go:171–173  ·  view source on GitHub ↗

StatusCode returns response status code.

()

Source from the content-addressed store, hash-verified

169
170// StatusCode returns response status code.
171func (resp *Response) StatusCode() int {
172 return resp.Header.StatusCode()
173}
174
175// SetStatusCode sets response status code.
176func (resp *Response) SetStatusCode(statusCode int) {

Callers 15

testFSFSCompressFunction · 0.95
ExampleLBClientFunction · 0.95
TestServerCRNLAfterPostFunction · 0.95
TestServerPipelineFlushFunction · 0.95
TestServerInvalidHeaderFunction · 0.95
TestServerConnStateFunction · 0.95
TestServerErrSmallBufferFunction · 0.95

Calls

no outgoing calls

Tested by 15

testFSFSCompressFunction · 0.76
ExampleLBClientFunction · 0.76
TestServerCRNLAfterPostFunction · 0.76
TestServerPipelineFlushFunction · 0.76
TestServerInvalidHeaderFunction · 0.76
TestServerConnStateFunction · 0.76
TestServerErrSmallBufferFunction · 0.76