Skip to content
Cinch
Packages/cinch-http/Net.Http.Client
SAMPLE API
MODULE REFERENCE

Net.Http.Client

An HTTP client whose network operations appear in its effect signature.

SYNOPSIS

Functions and values

get

function§Source ↗
get :: String ->{Io r} Result HttpError Response

Send a GET request. Connection failures remain explicit in Result.

EXAMPLE

response <- get "https://example.com/"
case response of
  Ok value -> status-code value
  Err problem -> 0