package coap
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Coap.MessageSource
The type of bigarray buffers used to represent message payloads.
Note: This type is compatible with Cstruct buffers.
See: Coap.Message.Coap_core.Message.payload_to_buffer
Source
type 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 ]
Source
type content_format = [ | `Text of [ `Plain ]| `Application of [ `Link_format | `Xml | `Octet_stream | `Exi | `Json | `Cbor ]
]Source
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
Source
val 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