Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ResponseLine Class Reference

Inheritance diagram for ResponseLine:

IWritable List of all members.

Public Member Functions

 this ()
void parse (char[] line)
char[] getVersion ()
char[] getReason ()
int getStatus ()
char[] toString ()
void write (IWriter writer)

Private Attributes

Buffer buf
BoundToken token
char[] reason
char[] status
char[] vershion

Detailed Description

Class to represent an HTTP response-line

Definition at line 438 of file HttpClient.d.


Member Function Documentation

this  )  [inline]
 

Construct response-line with pre-allocated buffer & token

Definition at line 452 of file HttpClient.d.

References buf, and token.

void parse char[]  line  )  [inline]
 

Parse the the given response-line into its constituent components.

Definition at line 467 of file HttpClient.d.

References buf, Buffer::getPosition(), BoundToken::next(), reason, Buffer::setValidContent(), status, token, Token::toString(), and vershion.

Referenced by HttpClient::open().

char [] getVersion  )  [inline]
 

Return HTTP version

Definition at line 491 of file HttpClient.d.

References vershion.

char [] getReason  )  [inline]
 

Return reason text

Definition at line 502 of file HttpClient.d.

References reason.

int getStatus  )  [inline]
 

Return status integer

Definition at line 513 of file HttpClient.d.

References status.

Referenced by HttpClient::getStatus().

char [] toString  )  [inline]
 

convert back to original string

Definition at line 524 of file HttpClient.d.

References reason, status, and vershion.

void write IWriter  writer  )  [inline]
 

Output the string via the given writer

Reimplemented from IWritable.

Definition at line 535 of file HttpClient.d.

References IWriter::cr(), and IWriter::put().


Member Data Documentation

Buffer buf [private]
 

Definition at line 440 of file HttpClient.d.

Referenced by parse(), and this().

BoundToken token [private]
 

Definition at line 441 of file HttpClient.d.

Referenced by parse(), and this().

char [] reason [private]
 

Definition at line 442 of file HttpClient.d.

Referenced by getReason(), parse(), and toString().

char [] status [private]
 

Definition at line 442 of file HttpClient.d.

Referenced by getStatus(), parse(), and toString().

char [] vershion [private]
 

Definition at line 442 of file HttpClient.d.

Referenced by getVersion(), parse(), and toString().


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:09 2004 for Mango by doxygen 1.3.6