1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

Document SendRequest error case (#2507)

* Document error case

* Improve docu text
This commit is contained in:
Oliver Feldmann 2021-01-12 15:26:45 +01:00 committed by GitHub
parent 84bb028ffd
commit ce9b958410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,6 +173,9 @@ func (c *Client) Upload(data UploadRequestData) (*http.Response, error) {
}
// SendRequest sends an http request with a defined method
//
// On error, any Response can be ignored and the Response.Body
// does not need to be closed.
func (c *Client) SendRequest(method, url string, body io.Reader, header http.Header, cookies []*http.Cookie) (*http.Response, error) {
httpClient := c.initialize()