Skip to content

Commit

Permalink
Mark http.GetURLResponse as deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
  • Loading branch information
puerco committed Jul 23, 2024
1 parent 1cd03a3 commit 9c49082
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ import (
"bytes"
)

// GetURLResponse returns the HTTP response for the provided URL if the request succeeds.
// GetURLResponse performs a get request and returns the response contents as a
// string if successful.
//
// Deprecated: Use http.Agent.Get() instead. This function will be removed in a
// future version of this package.
func GetURLResponse(url string, trim bool) (string, error) {
resp, err := NewAgent().Get(url)
if err != nil {
Expand Down

0 comments on commit 9c49082

Please sign in to comment.