EWebKit  1.0
Typedefs | Functions
ewk_url_response.h File Reference

Describes the Ewk URL response API. More...

#include <Eina.h>

Go to the source code of this file.

Typedefs

typedef struct EwkObject Ewk_Url_Response
 

Functions

EAPI const char * ewk_url_response_url_get (const Ewk_Url_Response *response)
 
EAPI int ewk_url_response_status_code_get (const Ewk_Url_Response *response)
 
EAPI const char * ewk_url_response_mime_type_get (const Ewk_Url_Response *response)
 
EAPI unsigned long ewk_url_response_content_length_get (const Ewk_Url_Response *response)
 

Detailed Description

Describes the Ewk URL response API.

Typedef Documentation

typedef struct EwkObject Ewk_Url_Response

Declare Ewk_Url_Response as Ewk_Object.

See also
Ewk_Object

Function Documentation

EAPI unsigned long ewk_url_response_content_length_get ( const Ewk_Url_Response response)

Get the expected content length of the Ewk_Url_Response.

It can be 0 if the server provided an incorrect or missing Content-Length.

Parameters
responsea Ewk_Url_Response.
Returns
the expected content length of response or 0 in case of failure.
EAPI const char* ewk_url_response_mime_type_get ( const Ewk_Url_Response response)

Query MIME type for this response.

Parameters
responseresponse object to query.
Returns
the MIME type pointer, that may be NULL. This pointer is guaranteed to be eina_stringshare, so whenever possible save yourself some cpu cycles and use eina_stringshare_ref() instead of eina_stringshare_add() or strdup().
EAPI int ewk_url_response_status_code_get ( const Ewk_Url_Response response)

Query HTTP status code for this response.

HTTP status code are defined by: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Parameters
responseresponse object to query.
Returns
the HTTP status code.
EAPI const char* ewk_url_response_url_get ( const Ewk_Url_Response response)

Query URL for this response.

Parameters
responseresponse object to query.
Returns
the URL pointer, that may be NULL. This pointer is guaranteed to be eina_stringshare, so whenever possible save yourself some cpu cycles and use eina_stringshare_ref() instead of eina_stringshare_add() or strdup().