PingAccess Agent SDK for C
|
#include <stdlib.h>
#include "apr.h"
#include "apr_pools.h"
Go to the source code of this file.
Classes | |
struct | paa_client_request_struct |
struct | paa_client_response_struct |
Typedefs | |
typedef struct paa_agent_response_struct | paa_agent_response |
typedef struct paa_client_request_struct | paa_client_request |
typedef size_t(* | paa_client_request_read_cb) (unsigned char *dst, size_t size, void *userdata) |
typedef apr_status_t(* | paa_header_cb) (const char *name, const char *value, void *userdata) |
typedef struct paa_client_response_struct | paa_client_response |
typedef size_t(* | paa_client_response_write_cb) (const unsigned char *src, size_t size, void *userdata) |
Header for HTTP Server Facade.
This file defines interfaces for the client request and response to be provided by the HTTP server/proxy. Some of the functions in these interfaces only need to be implemented when the SDK consumer is also using the paa_http_client interface.
Note: the SDK assumes that all data returned by these interfaces has been properly sanitized and is well-formed.
typedef struct paa_agent_response_struct paa_agent_response |
Opaque agent response handle
Not exposed to SDK consumers
typedef struct paa_client_request_struct paa_client_request |
Forward declaration typedef for client request structure
typedef size_t(* paa_client_request_read_cb) (unsigned char *dst, size_t size, void *userdata) |
Callback used to read the body of the request. This type is only used when using the paa_http_client interface.
dst | the destination of the data |
size | the size of each member in the data |
userdata | the userdata returned from the paa_client_request_get_read_data function |
typedef struct paa_client_response_struct paa_client_response |
Forward declaration of client response structure
typedef size_t(* paa_client_response_write_cb) (const unsigned char *src, size_t size, void *userdata) |
Callback for writing the response body of the client response
src | the source for the response body data |
size | the size of the response data |
userdata | the userdata specified with the callback |
typedef apr_status_t(* paa_header_cb) (const char *name, const char *value, void *userdata) |
Callback used to enumerate headers in a request or response
name | the name of the header |
value | the value of the header |
userdata | the data specified with the callback |