Apache Portable Runtime Utility Library
Data Fields
apr_uri_t Struct Reference

#include <apr_uri.h>

Data Fields

char * scheme
 
char * hostinfo
 
char * user
 
char * password
 
char * hostname
 
char * port_str
 
char * path
 
char * query
 
char * fragment
 
struct hostent * hostent
 
apr_port_t port
 
unsigned is_initialized:1
 
unsigned dns_looked_up:1
 
unsigned dns_resolved:1
 

Detailed Description

A structure to encompass all of the fields in a uri

Field Documentation

unsigned apr_uri_t::dns_looked_up

has the DNS been looked up yet

unsigned apr_uri_t::dns_resolved

has the dns been resolved yet

char* apr_uri_t::fragment

Trailing "#fragment" string, if present

struct hostent* apr_uri_t::hostent

structure returned from gethostbyname()

char* apr_uri_t::hostinfo

combined [user[:password]@]host[:port]

char* apr_uri_t::hostname

hostname from URI (or from Host: header)

unsigned apr_uri_t::is_initialized

has the structure been initialized

char* apr_uri_t::password

password, as in http://user:passwd@host:port/

char* apr_uri_t::path

the request path (or NULL if only scheme://host was given)

apr_port_t apr_uri_t::port

The port number, numeric, valid only if port_str != NULL

char* apr_uri_t::port_str

port string (integer representation is in "port")

char* apr_uri_t::query

Everything after a '?' in the path, if present

char* apr_uri_t::scheme

scheme ("http"/"ftp"/...)

char* apr_uri_t::user

user name, as in http://user:passwd@host:port/


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