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:
parent
84bb028ffd
commit
ce9b958410
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user