Module Bushel_sync.Http

HTTP client using the requests library

HTTP client using the requests library

val src : Logs.src
module Log : Logs.LOG
type t = Requests.t
val create : sw:Eio.Switch.t -> < clock : [> float Eio.Time.clock_ty ] Eio.Time.clock ; fs : Eio.Fs.dir_ty Eio.Path.t ; net : [> [> `Generic ] Eio.Net.ty ] Eio.Net.t.. > -> Requests.t
val get : http:Requests.t -> string -> (string, string) result
val get_with_header : http:Requests.t -> header:String.t -> string -> (string, string) result
val post : http:Requests.t -> content_type:string -> body:string -> string -> (string, string) result