aiocoap.options module¶
-
class
aiocoap.options.
Options
¶ Bases:
object
Represent CoAP Header Options.
-
decode
(rawdata)¶ Passed a CoAP message body after the token as rawdata, fill self with the options starting at the beginning of rawdata, an return the rest of the message (the body).
-
encode
()¶ Encode all options in option header into string of bytes.
-
add_option
(option)¶ Add option into option header.
-
delete_option
(number)¶ Delete option from option header.
-
get_option
(number)¶ Get option with specified number.
-
option_list
()¶
-
uri_path
¶ Iterable view on the URI_PATH option.
-
uri_query
¶ Iterable view on the URI_QUERY option.
-
location_path
¶ Iterable view on the LOCATION_PATH option.
-
location_query
¶ Iterable view on the LOCATION_QUERY option.
-
block2
¶ Single-value view on the BLOCK2 option.
-
block1
¶ Single-value view on the BLOCK1 option.
-
content_format
¶ Single-value view on the CONTENT_FORMAT option.
-
etag
¶ Single ETag as used in responses
List of ETags as used in requests
-
if_none_match
¶ Presence of the IF_NONE_MATCH option.
-
observe
¶ Single-value view on the OBSERVE option.
-
accept
¶ Single-value view on the ACCEPT option.
-
uri_host
¶ Single-value view on the URI_HOST option.
-
uri_port
¶ Single-value view on the URI_PORT option.
-
proxy_uri
¶ Single-value view on the PROXY_URI option.
-
proxy_scheme
¶ Single-value view on the PROXY_SCHEME option.
-
size1
¶ Single-value view on the SIZE1 option.
-
object_security
¶ Single-value view on the OBJECT_SECURITY option.
-
max_age
¶ Single-value view on the MAX_AGE option.
-
if_match
¶ Iterable view on the IF_MATCH option.
-
no_response
¶ Single-value view on the NO_RESPONSE option.
-
echo
¶ Single-value view on the ECHO option.
-
request_tag
¶ Iterable view on the REQUEST_TAG option.
-
hop_limit
¶ Single-value view on the HOP_LIMIT option.
-
request_hash
¶ Experimental property for draft-amsuess-core-cachable-oscore
-
edhoc
¶ Presence of the EDHOC option.
-
size2
¶ Single-value view on the SIZE2 option.
-