kex docs Standard Library

Http

type NetworkError

Variants

  • ConnectionRefused
  • Timeout
  • DnsError
  • SslError
  • NotImplemented
  • MockEmpty
  • Unknown

record HttpResponse

Fields

status
Integer
body
String
headers
Map<String, String>

record HttpError

Fields

message
String

record HttpOptions

Fields

headers
Map<String, String> optional
timeout
Integer optional

module Http

A capability: every member performs a real network request, so a test can replace it for a lexical region with with Http = ... rather than mutating global mock state (kexhq/kex#143).