30 #define COAP_URI_SCHEME_SECURE_MASK 0x01 Representation of parsed URI.
coap_uri_t * coap_clone_uri(const coap_uri_t *uri)
Clones the specified coap_uri_t object.
coap_string_t * coap_get_uri_path(const struct coap_pdu_t *request)
Extract uri_path string from request PDU.
int coap_split_query(const uint8_t *s, size_t length, unsigned char *buf, size_t *buflen)
Splits the given URI query into segments.
coap_str_const_t host
host part of the URI
Coap string data definition.
Coap string data definition with const data.
int coap_split_path(const uint8_t *s, size_t length, unsigned char *buf, size_t *buflen)
Splits the given URI path into segments.
structure for CoAP PDUs token, if any, follows the fixed size header, then options until payload mark...
static int coap_uri_scheme_is_secure(const coap_uri_t *uri)
enum coap_uri_scheme_t scheme
The parsed scheme specifier.
coap_uri_scheme_t
The scheme specifiers.
uint16_t port
The port in host byte order.
coap_string_t * coap_get_query(const struct coap_pdu_t *request)
Extract query string from request PDU according to escape rules in 6.5.8.
coap_uri_t * coap_new_uri(const uint8_t *uri, unsigned int length)
Creates a new coap_uri_t object from the specified URI.
coap_str_const_t query
The query part if present.
int coap_split_uri(const uint8_t *str_var, size_t len, coap_uri_t *uri)
Parses a given string into URI components.
#define COAP_URI_SCHEME_SECURE_MASK
This mask can be used to check if a parsed URI scheme is secure.
coap_str_const_t path
Beginning of the first path segment.