Documentation
¶
Index ¶
- Variables
- func MakeBodyRequest(method string, body IOE.IOEither[error, []byte]) func(url string) IOE.IOEither[error, *http.Request]
- func ReadAll(client Client) func(Requester) IOE.IOEither[error, []byte]
- func ReadFullResponse(client Client) func(Requester) IOE.IOEither[error, H.FullResponse]
- func ReadJSON[A any](client Client) func(Requester) IOE.IOEither[error, A]
- func ReadJson[A any](client Client) func(Requester) IOE.IOEither[error, A]deprecated
- func ReadText(client Client) func(Requester) IOE.IOEither[error, string]
- type Client
- type Requester
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MakeRequest is an eitherized version of [http.NewRequest] MakeRequest = IOE.Eitherize3(http.NewRequest) // specialize MakeGetRequest = makeRequest("GET", nil) )
Functions ¶
func MakeBodyRequest ¶ added in v1.0.70
func MakeBodyRequest(method string, body IOE.IOEither[error, []byte]) func(url string) IOE.IOEither[error, *http.Request]
MakeBodyRequest creates a request that carries a body
func ReadFullResponse ¶ added in v1.0.58
ReadFullResponse sends a request, reads the response as a byte array and represents the result as a tuple
func ReadJSON ¶ added in v1.0.118
ReadJSON sends a request, reads the response and parses the response as JSON
Types ¶
type Client ¶
func MakeClient ¶
Click to show internal directories.
Click to hide internal directories.