silo:std.effects.http

Source src/silo:std.effects.http

1##! Http effect — basic HTTP client operations.
2##!
3##! Sub-effect of `Net`.
4
5:use
6  :open core Str Result
7  :open effects.net Net
8:end
9
10## HTTP client effect supporting basic GET and POST operations.
11:effect(pub) Http Net
12  ## Performs an HTTP GET against the given URL and returns the response body.
13  .http-get ( Str -> (Result Str Str) )
14  ## Performs an HTTP POST with the given URL and body, returning the response body.
15  .http-post ( Str Str -> (Result Str Str) )
16:end