Method returns HTTP request method.
()
| 749 | |
| 750 | // Method returns HTTP request method. |
| 751 | func (h *RequestHeader) Method() []byte { |
| 752 | if len(h.method) == 0 { |
| 753 | return []byte(MethodGet) |
| 754 | } |
| 755 | return h.method |
| 756 | } |
| 757 | |
| 758 | // SetMethod sets HTTP request method. |
| 759 | func (h *RequestHeader) SetMethod(method string) { |
no outgoing calls