added if_none_match setter

Mesure-preliminaire
Björn Freise 4 years ago
parent b13f8a5496
commit 25d5f202db

@ -0,0 +1,42 @@
# file GENERATED by distutils, do NOT edit
coapclient.py
coapforwardproxy.py
coapreverseproxy.py
coapserver.py
exampleresources.py
setup.cfg
setup.py
coapthon\__init__.py
coapthon\defines.py
coapthon\serializer.py
coapthon\transaction.py
coapthon\utils.py
coapthon\caching\__init__.py
coapthon\caching\cache.py
coapthon\caching\coapcache.py
coapthon\caching\coaplrucache.py
coapthon\client\__init__.py
coapthon\client\coap.py
coapthon\client\helperclient.py
coapthon\forward_proxy\__init__.py
coapthon\forward_proxy\coap.py
coapthon\layers\__init__.py
coapthon\layers\blocklayer.py
coapthon\layers\cachelayer.py
coapthon\layers\forwardLayer.py
coapthon\layers\messagelayer.py
coapthon\layers\observelayer.py
coapthon\layers\requestlayer.py
coapthon\layers\resourcelayer.py
coapthon\messages\__init__.py
coapthon\messages\message.py
coapthon\messages\option.py
coapthon\messages\request.py
coapthon\messages\response.py
coapthon\resources\__init__.py
coapthon\resources\remoteResource.py
coapthon\resources\resource.py
coapthon\reverse_proxy\__init__.py
coapthon\reverse_proxy\coap.py
coapthon\server\__init__.py
coapthon\server\coap.py

@ -178,6 +178,20 @@ class Request(Message):
return True
return False
@if_none_match.setter
def if_none_match(self, value):
"""
Set the If-Match option of a request.
:param value: True/False
:type values : bool
"""
assert isinstance(value, bool)
option = Option()
option.number = defines.OptionRegistry.IF_NONE_MATCH.number
option.value = None
self.add_option(option)
def add_if_none_match(self):
"""
Add the if-none-match option to the request.

Loading…
Cancel
Save