diff --git a/en/digging-deeper/http-client.md b/en/digging-deeper/http-client.md index 45cec0c59..672ab1c43 100644 --- a/en/digging-deeper/http-client.md +++ b/en/digging-deeper/http-client.md @@ -44,10 +44,11 @@ type Response interface { Header(name string) string // Get the value of a specific header Headers() http.Header // Get all response headers Json() (map[string]any, error) // Decode the response body as JSON into a map - Redirect() bool // Check if the response is a redirect (3xx status code) - ServerError() bool // Check if the status code is in the 5xx range - Status() int // Get the HTTP status code - Successful() bool // Check if the status code is in the 2xx range + Redirect() bool // Check if the response is a redirect (3xx status code) + ServerError() bool // Check if the status code is in the 5xx range + Status() int // Get the HTTP status code + Stream() (io.ReadCloser, error) // Return a ReadCloser allowing the response body to be streamed + Successful() bool // Check if the status code is in the 2xx range /* status code related methods */