Evd.WebService¶
- Subclasses:
Evd.JsonrpcHttpServer
,Evd.LongpollingServer
,Evd.WebDir
,Evd.WebSelector
,Evd.WebsocketServer
Methods¶
- Inherited:
Evd.Service (13), Evd.IoStreamGroup (3), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Evd.WebService(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- add_connection_with_request(conn, request, return_to)¶
- Parameters:
conn (
Evd.HttpConnection
) –request (
Evd.HttpRequest
) –return_to (
Evd.Service
) –
- Return type:
- get_origin_policy()¶
- Return type:
- respond(conn, status_code, headers, content, size)¶
- Parameters:
conn (
Evd.HttpConnection
) –status_code (
int
) –headers (
Soup.MessageHeaders
orNone
) –content (
str
) –size (
int
) –
- Raises:
- Return type:
- respond_headers(conn, status_code, headers)¶
- Parameters:
conn (
Evd.HttpConnection
) –status_code (
int
) –headers (
Soup.MessageHeaders
) –
- Raises:
- Return type:
- set_origin_policy(policy)¶
- Parameters:
policy (
Evd.Policy
) –
- do_flush_and_return_connection(conn) virtual¶
- Parameters:
conn (
Evd.HttpConnection
) –
- do_log(conn, request, status_code, content_size) virtual¶
- Parameters:
conn (
Evd.HttpConnection
) –request (
Evd.HttpRequest
) –status_code (
int
) –content_size (
int
) –
- Return type:
- do_request_handler(conn, request) virtual¶
- Parameters:
conn (
Evd.HttpConnection
) –request (
Evd.HttpRequest
) –
- do_respond(conn, status_code, headers, content, size) virtual¶
- Parameters:
conn (
Evd.HttpConnection
) –status_code (
int
) –headers (
Soup.MessageHeaders
orNone
) –content (
str
) –size (
int
) –
- Return type:
- do_return_connection(conn) virtual¶
- Parameters:
conn (
Evd.HttpConnection
) –
- do_signal_log_entry(entry, *user_data) virtual¶
- do_signal_request_headers(connection, request, *user_data) virtual¶
- Parameters:
connection (
Evd.HttpConnection
) –request (
Evd.HttpRequest
) –
Signal Details¶
- Evd.WebService.signals.log_entry(web_service, object)¶
- Signal Name:
log-entry
- Flags:
- Parameters:
web_service (
Evd.WebService
) – The object which received the signalobject (
str
) –
- Evd.WebService.signals.request_headers(web_service, object, p0)¶
- Signal Name:
request-headers
- Flags:
- Parameters:
web_service (
Evd.WebService
) – The object which received the signalobject (
Evd.HttpConnection
) –p0 (
Evd.HttpRequest
) –