Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Coap_core.MessageSourcetype code = | Empty| Request of [ `Get | `Post | `Put | `Delete ]| Response of [ `Created
| `Deleted
| `Valid
| `Changed
| `Content
| `Bad_request
| `Unauthorized
| `Bad_option
| `Forbidden
| `Not_found
| `Method_not_allowed
| `Not_acceptable
| `Precondition_failed
| `Request_entity_too_large
| `Unsupported_content_format
| `Internal_server_error
| `Not_implemented
| `Bad_gateway
| `Service_unavailable
| `Gateway_timeout
| `Proxying_not_supported ]type content_format = [ | `Text of [ `Plain ]| `Application of [ `Link_format | `Xml | `Octet_stream | `Exi | `Json | `Cbor ] ]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 intval make :
?version:int ->
?id:int ->
?token:string ->
code:code ->
?kind:kind ->
?options:option list ->
?client_addr:string ->
buffer ->
tCoap message constructor.
Message token used to match a response with a request.
Token values may be 0 to 8 bytes in length.
Maximum safe message size.
https://tools.ietf.org/html/rfc7252#section-4.6