wotpy.protocols.http.server
Class that implements the HTTP server.
Classes
|
HTTP binding server implementation. |
- class wotpy.protocols.http.server.HTTPServer(port=8080, ssl_context=None, action_ttl_secs=300, security_scheme={'scheme': 'nosec'}, form_port=None, externalCertificate=None)
Bases:
BaseProtocolServerHTTP binding server implementation.
- DEFAULT_PORT = 8080
- DEFAULT_SECURITY_SCHEME = {'scheme': 'nosec'}
- property action_ttl
Returns the Action invocations Time-To-Live (seconds).
- property app
Tornado application.
- build_base_url(hostname, thing)
Returns the base URL for the given Thing in the context of this server.
- build_forms(hostname, interaction)
Builds and returns a list with all Form that are linked to this server for the given Interaction.
- property invocation_check_times
Dict that contains the timestamp of the last time an invocation was checked by a client.
- property pending_actions
Dict of pending action invocations represented as Futures.
- property protocol
Protocol of this server instance. A member of the Protocols enum.
- property scheme
Returns the URL scheme for this server.
- property security_scheme
Returns the configured security scheme of this server.
- async start(servient=None)
Starts the HTTP server.
- async stop()
Stops the HTTP server.