Module Coap.Message
type t
type kind
=
|
Confirmable
|
Nonconfirmable
|
Acknowledgement
|
Reset
type code
=
val pp_code : Stdlib.Format.formatter -> code -> unit
type content_format
=[
|
`Text of [ `Plain ]
|
`Application of [ `Link_format | `Xml | `Octet_stream | `Exi | `Json ]
]
type option
=
|
If_match of string
|
Uri_host of string
|
Etag of string
|
If_none_match
|
Uri_port of int
|
Location_path of string
|
Uri_path of string
|
Content_format of content_format
|
Max_age of int
|
Uri_query of string
|
Accept of int
|
Location_query of string
|
Proxy_uri of string
|
Proxy_scheme of string
|
Size1 of int
val make : ?version:int -> ?id:int -> ?token:string -> code:code -> ?kind:kind -> ?options:option list -> string -> t
Coap message constructor.