Evd.WebService

g Evd.IoStreamGroup Evd.IoStreamGroup Evd.Service Evd.Service Evd.IoStreamGroup->Evd.Service Evd.WebService Evd.WebService Evd.Service->Evd.WebService GObject.Object GObject.Object GObject.Object->Evd.IoStreamGroup

Subclasses:

Evd.JsonrpcHttpServer, Evd.LongpollingServer, Evd.WebDir, Evd.WebSelector, Evd.WebsocketServer

Methods

Inherited:

Evd.Service (13), Evd.IoStreamGroup (3), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_connection_with_request (conn, request, return_to)

allow_origin (origin)

deny_origin (origin)

get_origin_policy ()

origin_allowed (origin)

respond (conn, status_code, headers, content, size)

respond_headers (conn, status_code, headers)

set_origin_policy (policy)

Virtual Methods

Inherited:

Evd.Service (4), Evd.IoStreamGroup (2), GObject.Object (7)

do_flush_and_return_connection (conn)

do_log (conn, request, status_code, content_size)

do_request_handler (conn, request)

do_respond (conn, status_code, headers, content, size)

do_return_connection (conn)

do_signal_log_entry (entry, *user_data)

do_signal_request_headers (connection, request, *user_data)

Properties

Inherited:

Evd.Service (2), Evd.IoStreamGroup (2)

Signals

Inherited:

Evd.Service (2), GObject.Object (1)

Name

Short Description

log-entry

request-headers

Fields

Inherited:

Evd.Service (2), GObject.Object (1)

Name

Type

Access

Description

parent

Evd.Service

r

Class Details

class Evd.WebService(**kwargs)
Bases:

Evd.Service

Abstract:

No

Structure:

Evd.WebServiceClass

classmethod new()
Return type:

Evd.WebService

add_connection_with_request(conn, request, return_to)
Parameters:
Return type:

bool

allow_origin(origin)
Parameters:

origin (str) –

deny_origin(origin)
Parameters:

origin (str) –

get_origin_policy()
Return type:

Evd.Policy

origin_allowed(origin)
Parameters:

origin (str) –

Return type:

bool

respond(conn, status_code, headers, content, size)
Parameters:
Raises:

GLib.Error

Return type:

bool

respond_headers(conn, status_code, headers)
Parameters:
Raises:

GLib.Error

Return type:

bool

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:
Return type:

bool

do_request_handler(conn, request) virtual
Parameters:
do_respond(conn, status_code, headers, content, size) virtual
Parameters:
Return type:

bool

do_return_connection(conn) virtual
Parameters:

conn (Evd.HttpConnection) –

do_signal_log_entry(entry, *user_data) virtual
Parameters:
do_signal_request_headers(connection, request, *user_data) virtual
Parameters:

Signal Details

Evd.WebService.signals.log_entry(web_service, object)
Signal Name:

log-entry

Flags:

ACTION

Parameters:
  • web_service (Evd.WebService) – The object which received the signal

  • object (str) –

Evd.WebService.signals.request_headers(web_service, object, p0)
Signal Name:

request-headers

Flags:

ACTION

Parameters: