nsHttpResponseHead Class Reference

#include <nsHttpResponseHead.h>

Inheritance diagram for nsHttpResponseHead:

Inheritance graph
[legend]
Collaboration diagram for nsHttpResponseHead:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsHttpResponseHead ()
 ~nsHttpResponseHead ()
nsHttpHeaderArrayHeaders ()
nsHttpVersion Version ()
PRUint16 Status ()
const nsAFlatCStringStatusText ()
PRInt64 ContentLength ()
const nsAFlatCStringContentType ()
const nsAFlatCStringContentCharset ()
PRBool NoStore ()
PRBool NoCache ()
PRBool CacheControlPublic ()
PRInt64 TotalEntitySize ()
 Full length of the entity.
const charPeekHeader (nsHttpAtom h)
nsresult SetHeader (nsHttpAtom h, const nsACString &v, PRBool m=PR_FALSE)
nsresult GetHeader (nsHttpAtom h, nsACString &v)
void ClearHeader (nsHttpAtom h)
void ClearHeaders ()
const charFindHeaderValue (nsHttpAtom h, const char *v)
PRBool HasHeaderValue (nsHttpAtom h, const char *v)
void SetContentType (const nsACString &s)
void SetContentCharset (const nsACString &s)
void SetContentLength (PRInt64)
void Flatten (nsACString &, PRBool pruneTransients)
nsresult Parse (char *block)
void ParseStatusLine (char *line)
void ParseHeaderLine (char *line)
nsresult ComputeFreshnessLifetime (PRUint32 *)
nsresult ComputeCurrentAge (PRUint32 now, PRUint32 requestTime, PRUint32 *result)
PRBool MustValidate ()
PRBool MustValidateIfExpired ()
PRBool IsResumable ()
PRBool ExpiresInPast ()
nsresult UpdateHeaders (nsHttpHeaderArray &headers)
void Reset ()
nsresult ParseDateHeader (nsHttpAtom header, PRUint32 *result)
nsresult GetAgeValue (PRUint32 *result)
nsresult GetMaxAgeValue (PRUint32 *result)
nsresult GetDateValue (PRUint32 *result)
nsresult GetExpiresValue (PRUint32 *result)
nsresult GetLastModifiedValue (PRUint32 *result)


Constructor & Destructor Documentation

nsHttpResponseHead::nsHttpResponseHead (  )  [inline]

nsHttpResponseHead::~nsHttpResponseHead (  )  [inline]


Member Function Documentation

nsHttpHeaderArray& nsHttpResponseHead::Headers (  )  [inline]

nsHttpVersion nsHttpResponseHead::Version (  )  [inline]

PRUint16 nsHttpResponseHead::Status (  )  [inline]

const nsAFlatCString& nsHttpResponseHead::StatusText (  )  [inline]

PRInt64 nsHttpResponseHead::ContentLength (  )  [inline]

const nsAFlatCString& nsHttpResponseHead::ContentType (  )  [inline]

const nsAFlatCString& nsHttpResponseHead::ContentCharset (  )  [inline]

PRBool nsHttpResponseHead::NoStore (  )  [inline]

PRBool nsHttpResponseHead::NoCache (  )  [inline]

PRBool nsHttpResponseHead::CacheControlPublic (  )  [inline]

PRInt64 nsHttpResponseHead::TotalEntitySize (  ) 

For byte-range requests, this may be larger than ContentLength(), which will only represent the requested part of the entity.

const char* nsHttpResponseHead::PeekHeader ( nsHttpAtom  h  )  [inline]

nsresult nsHttpResponseHead::SetHeader ( nsHttpAtom  h,
const nsACString v,
PRBool  m = PR_FALSE 
)

nsresult nsHttpResponseHead::GetHeader ( nsHttpAtom  h,
nsACString v 
) [inline]

void nsHttpResponseHead::ClearHeader ( nsHttpAtom  h  )  [inline]

void nsHttpResponseHead::ClearHeaders (  )  [inline]

const char* nsHttpResponseHead::FindHeaderValue ( nsHttpAtom  h,
const char v 
) [inline]

PRBool nsHttpResponseHead::HasHeaderValue ( nsHttpAtom  h,
const char v 
) [inline]

void nsHttpResponseHead::SetContentType ( const nsACString s  )  [inline]

void nsHttpResponseHead::SetContentCharset ( const nsACString s  )  [inline]

void nsHttpResponseHead::SetContentLength ( PRInt64  len  ) 

void nsHttpResponseHead::Flatten ( nsACString buf,
PRBool  pruneTransients 
)

nsresult nsHttpResponseHead::Parse ( char block  ) 

void nsHttpResponseHead::ParseStatusLine ( char line  ) 

void nsHttpResponseHead::ParseHeaderLine ( char line  ) 

nsresult nsHttpResponseHead::ComputeFreshnessLifetime ( PRUint32 result  ) 

nsresult nsHttpResponseHead::ComputeCurrentAge ( PRUint32  now,
PRUint32  requestTime,
PRUint32 result 
)

PRBool nsHttpResponseHead::MustValidate (  ) 

PRBool nsHttpResponseHead::MustValidateIfExpired (  ) 

PRBool nsHttpResponseHead::IsResumable (  ) 

PRBool nsHttpResponseHead::ExpiresInPast (  ) 

nsresult nsHttpResponseHead::UpdateHeaders ( nsHttpHeaderArray headers  ) 

void nsHttpResponseHead::Reset (  ) 

nsresult nsHttpResponseHead::ParseDateHeader ( nsHttpAtom  header,
PRUint32 result 
)

nsresult nsHttpResponseHead::GetAgeValue ( PRUint32 result  ) 

nsresult nsHttpResponseHead::GetMaxAgeValue ( PRUint32 result  ) 

nsresult nsHttpResponseHead::GetDateValue ( PRUint32 result  )  [inline]

nsresult nsHttpResponseHead::GetExpiresValue ( PRUint32 result  ) 

nsresult nsHttpResponseHead::GetLastModifiedValue ( PRUint32 result  )  [inline]


The documentation for this class was generated from the following files:

Generated Mozilla by doxygen 1.5.6