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

Method SetStatusMessage

header.go:145–147  ·  view source on GitHub ↗

SetStatusMessage sets response status message bytes.

(statusMessage []byte)

Source from the content-addressed store, hash-verified

143
144// SetStatusMessage sets response status message bytes.
145func (h *ResponseHeader) SetStatusMessage(statusMessage []byte) {
146 h.statusMessage = initHeaderValueBytes(h.statusMessage, statusMessage)
147}
148
149// SetProtocol sets response protocol bytes.
150func (h *ResponseHeader) SetProtocol(protocol []byte) {

Calls 1

initHeaderValueBytesFunction · 0.85