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

Method SetProtocolBytes

header.go:783–786  ·  view source on GitHub ↗

SetProtocolBytes sets HTTP request protocol.

(protocol []byte)

Source from the content-addressed store, hash-verified

781
782// SetProtocolBytes sets HTTP request protocol.
783func (h *RequestHeader) SetProtocolBytes(protocol []byte) {
784 h.protocol = initHeaderValueBytes(h.protocol, protocol)
785 h.noHTTP11 = !bytes.Equal(h.protocol, strHTTP11)
786}
787
788// RequestURI returns RequestURI from the first HTTP request line.
789func (h *RequestHeader) RequestURI() []byte {

Calls 1

initHeaderValueBytesFunction · 0.85