SetProtocolBytes sets HTTP request protocol.
(protocol []byte)
| 781 | |
| 782 | // SetProtocolBytes sets HTTP request protocol. |
| 783 | func (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. |
| 789 | func (h *RequestHeader) RequestURI() []byte { |