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