Documentation
¶
Index ¶
- Variables
- type Client
- type IOResult
- type Kleisli
- func MakeBodyRequest(method string, body IOResult[[]byte]) Kleisli[string, *http.Request]
- func ReadAll(client Client) Kleisli[Requester, []byte]
- func ReadFullResponse(client Client) Kleisli[Requester, H.FullResponse]
- func ReadJSON[A any](client Client) Kleisli[Requester, A]
- func ReadText(client Client) Kleisli[Requester, string]
- type Operator
- type Requester
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MakeRequest is an eitherized version of [http.NewRequest] MakeRequest = IOEH.MakeRequest // specialize MakeGetRequest = IOEH.MakeGetRequest )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func MakeClient ¶
type Kleisli ¶
func MakeBodyRequest ¶
MakeBodyRequest creates a request that carries a body
func ReadFullResponse ¶
func ReadFullResponse(client Client) Kleisli[Requester, H.FullResponse]
ReadFullResponse sends a request, reads the response as a byte array and represents the result as a tuple
Click to show internal directories.
Click to hide internal directories.