Evd.HttpConnection¶
- Subclasses:
None
Methods¶
- Inherited:
Evd.Connection (15), Evd.IoStream (4), Gio.IOStream (11), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Evd.Connection (2), Evd.IoStream (3), Gio.IOStream (5), GObject.Object (7)
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Evd.HttpConnection(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(socket)¶
- Parameters:
socket (
Evd.Socket
) –- Return type:
- get_current_request()¶
- Return type:
- read_all_content(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- read_all_content_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- read_content(buffer, size, cancellable, callback, *user_data)¶
- Parameters:
buffer (
str
) –size (
int
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- read_content_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- read_request_headers(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- read_request_headers_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – TheGio.AsyncResult
object passed to the callback.- Raises:
- Return type:
- read_response_headers(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- read_response_headers_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – TheGio.AsyncResult
object passed to the callback.- Raises:
- Return type:
(
Soup.MessageHeaders
, version:Soup.HTTPVersion
, status_code:int
, reason_phrase:str
)
- redirect(url, permanently)¶
- Parameters:
- Raises:
- Return type:
- respond(ver, status_code, reason_phrase, headers, content, size, close_after)¶
- Parameters:
ver (
Soup.HTTPVersion
) –status_code (
int
) –headers (
Soup.MessageHeaders
orNone
) –size (
int
) –close_after (
bool
) –
- Raises:
- Return type:
- respond_simple(status_code, content, size)¶
- set_current_request(request)¶
- Parameters:
request (
Evd.HttpRequest
orNone
) –
- set_keepalive(keepalive)¶
-
Manually sets the keepalive flag, overriding the internal state obtained from HTTP headers.
- unread_request_headers(request)¶
- Parameters:
request (
Evd.HttpRequest
) –- Raises:
- Return type:
- write_content(buffer, size, more)¶
- Parameters:
- Raises:
- Return type:
- write_request_headers(request, cancellable, callback, *user_data)¶
- Parameters:
request (
Evd.HttpRequest
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- write_request_headers_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- write_response_headers(version, status_code, reason_phrase, headers)¶
- Parameters:
version (
Soup.HTTPVersion
) –status_code (
int
) –reason_phrase (
str
) –headers (
Soup.MessageHeaders
orNone
) –
- Raises:
- Return type: