Apache HTTP Server Request Library
#include "apr_file_io.h"
#include "apr_buckets.h"
#include "apreq.h"
Go to the source code of this file.
Functions | |
char * | apreq_join (apr_pool_t *p, const char *sep, const apr_array_header_t *arr, apreq_join_t mode) |
apr_ssize_t | apreq_index (const char *hay, apr_size_t hlen, const char *ndl, apr_size_t nlen, const apreq_match_t type) |
apr_size_t | apreq_quote (char *dest, const char *src, const apr_size_t slen) |
apr_size_t | apreq_quote_once (char *dest, const char *src, const apr_size_t slen) |
apr_size_t | apreq_encode (char *dest, const char *src, const apr_size_t slen) |
apr_size_t | apreq_cp1252_to_utf8 (char *dest, const char *src, apr_size_t slen) |
apreq_charset_t | apreq_charset_divine (const char *src, apr_size_t slen) |
apr_status_t | apreq_decode (char *dest, apr_size_t *dlen, const char *src, apr_size_t slen) |
apr_status_t | apreq_decodev (char *dest, apr_size_t *dlen, struct iovec *v, int nelts) |
static APR_INLINE char * | apreq_escape (apr_pool_t *p, const char *src, const apr_size_t slen) |
static APR_INLINE apr_ssize_t | apreq_unescape (char *str) |
apr_int64_t | apreq_atoi64f (const char *s) |
apr_int64_t | apreq_atoi64t (const char *s) |
apr_status_t | apreq_brigade_fwrite (apr_file_t *f, apr_off_t *wlen, apr_bucket_brigade *bb) |
apr_status_t | apreq_file_mktemp (apr_file_t **fp, apr_pool_t *pool, const char *path) |
static APR_INLINE apr_status_t | apreq_brigade_setaside (apr_bucket_brigade *bb, apr_pool_t *p) |
static APR_INLINE apr_status_t | apreq_brigade_copy (apr_bucket_brigade *d, apr_bucket_brigade *s) |
static APR_INLINE void | apreq_brigade_move (apr_bucket_brigade *d, apr_bucket_brigade *s, apr_bucket *e) |
apr_status_t | apreq_header_attribute (const char *hdr, const char *name, const apr_size_t nlen, const char **val, apr_size_t *vlen) |
apr_status_t | apreq_brigade_concat (apr_pool_t *pool, const char *temp_dir, apr_size_t brigade_limit, apr_bucket_brigade *out, apr_bucket_brigade *in) |
apr_file_t * | apreq_brigade_spoolfile (apr_bucket_brigade *bb) |
This header contains useful functions for creating new parsers, hooks or modules. It includes
|
Converts file sizes (KMG) to bytes
|
|
Converts time strings (YMDhms) to seconds
|
|
Concatenates the brigades, spooling large brigades into a tempfile (APREQ_SPOOL) bucket.
|
|
Copy a brigade.
|
|
Writes brigade to a file.
|
|
Move the front of a brigade.
|
|
Set aside all buckets in the brigade.
|
|
Determines the spool file used by the brigade. Returns NULL if the brigade is not spooled in a file (does not use an APREQ_SPOOL bucket).
|
|
Heuristically determine the charset of a string.
|
|
Convert a string from cp1252 to utf8. Caller must ensure it is large enough to hold the encoded string and trailing '\0'.
|
|
Url-decodes a string.
|
|
Url-decodes an iovec array.
|
|
Url-encodes a string.
|
|
Returns an url-encoded copy of a string.
|
|
Makes a temporary file.
|
|
Search a header string for the value of a particular named attribute.
|
|
Returns offset of match string's location, or -1 if no match is found.
|
|
Join an array of values. The result is an empty string if there are no values.
|
|
Places a quoted copy of src into dest. Embedded quotes are escaped with a backslash ('\').
|
|
Same as apreq_quote() except when src begins and ends in quote marks. In that case it assumes src is quoted correctly, and just copies src to dest.
|
|
An in-situ url-decoder.
|