class documentation

class ACMECoAPRequestLayer(CoapthonRequestLayer):

Constructor: ACMECoAPRequestLayer(server, handler)

View In Hierarchy

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_request Handle a CoAP request.
Instance Variable _handlers The handlers for the different CoAP operations.
def __init__(self, server: CoAP, handler: ACMECoAPHandler):

Initialize the request layer.

Parameters
server:CoAPThe CoAP server instance.
handler:ACMECoAPHandlerA handler class to handle the requests.
def receive_request(self, transaction: CoapthonTransaction) -> CoapthonTransaction:

Handle a CoAP request.

This method overrides the receive_request method of the CoapthonRequestLayer class to handle the requests.

Parameters
transaction:CoapthonTransactionThe CoAP transaction.
Returns
CoapthonTransactionThe transaction.
_handlers =

The handlers for the different CoAP operations.