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.
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.
|