class documentation
class ACMECoAPRequestLayer(CoapthonRequestLayer):
Constructor: ACMECoAPRequestLayer(server, handler)
Implementation of an own request layer handler for the coapthon CoAP framework.
This implementation replaces the receive_request method of the RequestLayer class to handle the requests
according to the ACME CSE requirements. It doesn't call a resource layer to handle the requests, but an internal
handler.
| Method | __init__ |
Initialize the request layer. |
| Method | receive |
Handle a CoAP request. |
| Instance Variable | _handlers |
The handlers for the different CoAP operations. |
Initialize the request layer.
| Parameters | |
server:CoAP | The CoAP server instance. |
handler:ACMECoAPHandler | A handler class to handle the requests. |
Handle a CoAP request.
This method overrides the receive_request method of the CoapthonRequestLayer class to handle the requests.
| Parameters | |
transaction:CoapthonTransaction | The CoAP transaction. |
| Returns | |
CoapthonTransaction | The transaction. |