SetMethod sets HTTP request method.
(method string)
| 757 | |
| 758 | // SetMethod sets HTTP request method. |
| 759 | func (h *RequestHeader) SetMethod(method string) { |
| 760 | h.method = initHeaderValueString(h.method, method) |
| 761 | } |
| 762 | |
| 763 | // SetMethodBytes sets HTTP request method. |
| 764 | func (h *RequestHeader) SetMethodBytes(method []byte) { |