Skip to content

Commit 08737b3

Browse files
committedSep 9, 2013
update
1 parent c7b09e6 commit 08737b3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed
 

‎http.go

-10
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,8 @@ import (
1212
"io"
1313
)
1414

15-
// DefaultClient is the default http Client used by this package.
16-
// It's defaults are expected to represent the best practice
17-
// at the time, but may change over time. If you need more
18-
// control or reproducibility, you should construct your own client.
1915
var DefaultClient = NewClient()
2016

21-
// Get issues a GET request using the DefaultClient and writes the result to
22-
// to w if successful. If the status code of the response is not a success (see
23-
// Success.IsSuccess()) no data will be written and the status code will be
24-
// returned as an error.
2517
func GET(w io.Writer, url string) (int64, error) {
2618
resp, err := DefaultClient.GET(url, nil)
2719
if checkError(err) {
@@ -32,8 +24,6 @@ func GET(w io.Writer, url string) (int64, error) {
3224
return io.Copy(w, resp.Body)
3325
}
3426

35-
// Post issues a POST request using the DefaultClient using r as the body.
36-
// If the status code was not a success code, it will be returned as an error.
3727
func POST(url string, r io.Reader) error {
3828
resp, err := DefaultClient.POST(url, nil, r)
3929
if checkError(err) {

0 commit comments

Comments
 (0)
Please sign in to comment.