package hyper

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type request = client message
and response = server message
and handler = request -> response promise
and 'a message = 'a Dream_pure.Message.message
and client = Dream_pure.Message.client
and server = Dream_pure.Message.server
and 'a promise = 'a Lwt.t
and stream = Dream_pure.Stream.stream
val get : ?headers:(string * string) list -> ?redirect_limit:int -> ?server:handler -> string -> string promise
val post : ?headers:(string * string) list -> ?redirect_limit:int -> ?server:handler -> string -> string -> string promise
type websocket
val websocket : ?redirect_limit:int -> ?server:handler -> string -> websocket promise
val send : ?text_or_binary:[ `Text | `Binary ] -> ?end_of_message:[ `End_of_message | `Continues ] -> websocket -> string -> unit promise
val receive : websocket -> string option promise
val receive_fragment : websocket -> (string * [ `Text | `Binary ] * [ `End_of_message | `Continues ]) option promise
val close_websocket : ?code:int -> websocket -> unit promise
type method_ = Dream_pure.Method.method_
val request : ?method_:[< method_ ] -> ?headers:(string * string) list -> ?body:stream -> string -> request
val run : request -> response promise
val body : 'a message -> string promise
val to_form_urlencoded : (string * string) list -> string
OCaml

Innovation. Community. Security.