package cohttp_async_websocket

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module On_connection : sig ... end
type websocket_handler = inet:Async.Socket.Address.Inet.t -> subprotocol:string option -> Cohttp.Request.t -> On_connection.t Async.Deferred.t
val create : non_ws_request:http_handler -> ?opcode:[ `Text | `Binary ] -> ?should_process_request: (Async.Socket.Address.Inet.t -> Header.t -> is_websocket_request:bool -> unit Core.Or_error.t) -> ?websocket_subprotocol_selection: (Cohttp_async.Request.t -> [ `Subprotocol of string option ]) -> websocket_handler -> raw_http_handler