package tezos-rpc-http

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = Resto_cohttp.Media_type.Make(Tezos_rpc.RPC_encoding).t = {
  1. name : Cohttp.Accept.media_range;
  2. q : int option;
  3. pp : 'a. 'a Data_encoding.t -> Format.formatter -> string -> unit;
  4. construct : 'a. 'a Data_encoding.t -> 'a -> string;
  5. construct_seq : 'a. 'a Data_encoding.t -> 'a -> (Bytes.t * int * int) Seq.t;
  6. destruct : 'a. 'a Data_encoding.t -> string -> ('a, string) result;
}
val name : t -> string
val json : t
val bson : t
val octet_stream : t
val all_media_types : t list
val accept_header : t list -> string
val first_complete_media : t list -> ((string * string) * t) option
module Content_type : sig ... end
val of_content_type : Content_type.t -> t option