(url string, authorization *Authorization, header http.Header)
| 17 | } |
| 18 | |
| 19 | func NewHttpGetRequest(url string, authorization *Authorization, header http.Header) *HttpRequest { |
| 20 | return NewHttpRequest(http.MethodGet, url, authorization, header, &bytes.Buffer{}, -1) |
| 21 | } |
| 22 | |
| 23 | func NewHttpPostRequest(url string, authorization *Authorization, header http.Header, body io.Reader, contentLength int64) *HttpRequest { |
| 24 | return NewHttpRequest(http.MethodPost, url, authorization, header, body, contentLength) |
no test coverage detected