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

Method SetProtocol

header.go:777–780  ·  view source on GitHub ↗

SetProtocol sets HTTP request protocol.

(protocol string)

Source from the content-addressed store, hash-verified

775
776// SetProtocol sets HTTP request protocol.
777func (h *RequestHeader) SetProtocol(protocol string) {
778 h.protocol = initHeaderValueString(h.protocol, protocol)
779 h.noHTTP11 = !bytes.Equal(h.protocol, strHTTP11)
780}
781
782// SetProtocolBytes sets HTTP request protocol.
783func (h *RequestHeader) SetProtocolBytes(protocol []byte) {

Calls 1

initHeaderValueStringFunction · 0.85