Attention
This is the documentation for HARP Proxy, actually published as an early preview. Both the software and documentation are a work in progress, and although we already use it on various production servers, they may contain inaccuracies, typographical errors, huge mistakes and empty pages. We work hard to eradicate all mistakes and implement stuff, but it is a long and tedious process. We appreciate your patience and understanding. Of course, any help will be greatly appreciated.
harp_apps.proxy.controllers¶
- class HttpProxyController[source]¶
Bases:
object
- __init__(url, *, http_client, dispatcher=None, name=None, logging=True)[source]¶
- Parameters:
http_client (AsyncClient)
- async adispatch(event_id, event=None)[source]¶
Shortcut method to dispatch an event using the controller’s dispatcher, if there is one.
- Returns:
IEvent
or None
- async end_transaction(transaction, response)[source]¶
- Parameters:
response (BaseHttpMessage)
- property dispatcher¶
Read-only reference to the event dispatcher.
- name: str = None¶
Controller name, also refered as endpoint name (for example in
Transaction
).