Module Http.TRX

module TRX: sig .. end
Once build (as a poster or server), the Http.TRX handle the whole connection(s). Used to tx a body (packed into a 200 Ok response or a post). This is mostly useful to use HTTP as a transport layer (for instance as a tunnel).

type t = {
   cmd : Http.cmd;
   headers : Http.header list;
   mutable recv : Bitstring.bitstring -> unit;
   top : Http.TRXtop.t;
}
val tx : t -> Bitstring.bitstring -> unit
val rx : t -> Bitstring.bitstring -> unit
val make : ?cmd:Http.cmd -> Http.header list -> Tools.trx