We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390c1d8 commit eeac125Copy full SHA for eeac125
client.go
@@ -870,11 +870,13 @@ func (c *Client) Head(url string) (*http.Response, error) {
870
}
871
872
// Post is a shortcut for doing a POST request without making a new client.
873
+// The bodyType parameter sets the "Content-Type" header of the request.
874
func Post(url, bodyType string, body interface{}) (*http.Response, error) {
875
return defaultClient.Post(url, bodyType, body)
876
877
878
// Post is a convenience method for doing simple POST requests.
879
880
func (c *Client) Post(url, bodyType string, body interface{}) (*http.Response, error) {
881
req, err := NewRequest("POST", url, body)
882
if err != nil {
0 commit comments