Skip to main content

Module Tea_http

type response_status​

type response_status = {

type requestBody​

type requestBody = Web.XMLHttpRequest.body

type bodyType​

type bodyType = Web.XMLHttpRequest.responseType

type responseBody​

type responseBody = Web.XMLHttpRequest.responseBody

type response​

type response = {

type error​

type 'parsedata error = 

val string_of_error​

val string_of_error : 'a error -> string

type header​

type header = 

type expect​

type 'res expect = 

type requestEvents​

type 'msg requestEvents = {

val emptyRequestEvents​

val emptyRequestEvents : 'a requestEvents

type rawRequest​

type 'res rawRequest = {

type request​

type ('msg, 'res) request = 

val expectStringResponse​

val expectStringResponse :    ( string -> ( 'a, string ) Tea_result.t ) ->   'a expect

val expectString​

val expectString : string expect

val request​

val request : 'a rawRequest -> ( 'b, 'a ) request

val getString​

val getString : string -> ( 'a, string ) request

val toTask​

val toTask : ( 'a, 'b ) request -> ( 'c, string error ) Tea_task.t

val send​

val send :    ( ( 'a, string error ) Tea_result.t -> 'b ) ->   ( 'c, 'd ) request ->   'e Tea_cmd.t

val encodeURIComponent​

val encodeURIComponent : string -> string

val encodeUri​

val encodeUri : string -> string

val decodeURIComponent​

val decodeURIComponent : string -> string

val decodeUri​

val decodeUri : string -> string option

module Progress​

module Progress : sig ... end