aiocoap.proxy.client module

class aiocoap.proxy.client.ProxyForwarder(proxy_address, context)

Bases: RequestProvider

Object that behaves like a Context but only provides the request function and forwards all messages to a proxy.

This is not a proxy itself, it is just the interface for an external one.

property proxy
request(message, **kwargs)

Create and act on a a Request object that will be handled according to the provider’s implementation.

Note that the request is not necessarily sent on the wire immediately; it may (but, depend on the transport does not necessarily) rely on the response to be waited for.