PingAccess Agent SDK for C
Public Attributes | List of all members
paa_http_request_struct Struct Reference

#include <paa-http-client.h>

Public Attributes

void * impl
 
apr_status_t(* add_request_header )(const paa_http_request *req, const char *name, const char *value)
 
apr_status_t(* set_request_uri )(const paa_http_request *req, const char *uri)
 
apr_status_t(* set_request_method )(const paa_http_request *req, const char *method)
 
apr_status_t(* set_include_client_request_body )(const paa_http_request *req, int include_body)
 

Detailed Description

The HTTP request structure. This structure is used to create the HTTP request to be sent to PingAccess to obtain a policy decision.

Member Data Documentation

apr_status_t(* paa_http_request_struct::add_request_header) (const paa_http_request *req, const char *name, const char *value)

Adds a distinct header to the request. Implementations do not need to worry about combining multiple headers of the same name.

Parameters
reqthe request handle
namethe name
valuethe value (must not be NULL)
Returns
APR_SUCCESS on success
APR_PAA_HTTP_ERROR on error
void* paa_http_request_struct::impl

opaque implementation handle

apr_status_t(* paa_http_request_struct::set_include_client_request_body) (const paa_http_request *req, int include_body)

Sets whether the body from the client request should be included with the request

Parameters
reqthe request handle
include_bodynon-zero if the request body should be included. Zero if the body should not be sent
Returns
APR_SUCCESS on success
APR_PAA_HTTP_ERROR on error
apr_status_t(* paa_http_request_struct::set_request_method) (const paa_http_request *req, const char *method)

Sets the method of the request

Parameters
reqthe request handle
methodthe request method
Returns
APR_SUCCESS on success
APR_PAA_HTTP_ERROR on error
apr_status_t(* paa_http_request_struct::set_request_uri) (const paa_http_request *req, const char *uri)

Sets the raw request URI

Parameters
reqthe request handle
urithe uri
Returns
APR_SUCCESS on success
APR_PAA_HTTP_ERROR on error

The documentation for this struct was generated from the following file: