SetProtocol sets HTTP request protocol.
(protocol string)
| 775 | |
| 776 | // SetProtocol sets HTTP request protocol. |
| 777 | func (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. |
| 783 | func (h *RequestHeader) SetProtocolBytes(protocol []byte) { |