Pike v8.1 release 6

Class Protocols.HTTP.Promise.Success

Inheritance graph
Protocols.HTTP.Promise.Result Protocols.HTTP.Promise.Success
Description

A class representing a successful request and its response. An instance of this class will be given as argument to the Concurrent.Future()->on_success() callback registered on the returned Concurrent.Future object from get_url(), post_url(), delete_url(), put_url() or do_method().


Variable content_encoding

string Protocols.HTTP.Promise.Success.content_encoding

Description

Returns the content encoding of the requested document, if given by the response headers.

Note

Read only


Variable content_type

string Protocols.HTTP.Promise.Success.content_type

Description

Returns the content type of the requested document

Note

Read only


Variable data

string Protocols.HTTP.Promise.Success.data

Description

The response body, i.e the content of the requested URL

Note

Read only


Inherit Result

inherit Result : Result


Variable length

int Protocols.HTTP.Promise.Success.length

Description

Returns the value of the content-length header.

Note

Read only