|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
A HTTP Request for a resource
Field Summary | |
---|---|
ClintHeyer.Httpd.Context | context |
string | credentials |
System.Collections.ArrayList | data |
System.Collections.Hashtable | headers |
bool | keepAlive |
ClintHeyer.Httpd.HttpMethod | method |
System.Collections.Hashtable | parameters |
string | request |
ClintHeyer.Httpd.HttpSession | session |
ClintHeyer.Httpd.URI | uri |
ClintHeyer.Httpd.HttpVersion | version |
Constructor Summary | |
---|---|
HttpRequest(string request, System.Collections.Hashtable headers, ClintHeyer.Httpd.HttpMethod method, ClintHeyer.Httpd.HttpVersion version, System.Collections.ArrayList data) |
Property Summary | |
---|---|
ClintHeyer.Httpd.Context |
Context
Gets the Context this request originated from |
string | Credentials |
System.Collections.ArrayList |
Data
Gets the data in this request |
ClintHeyer.Httpd.HttpVersion |
HttpVersion
Gets the HTTP version of this request |
bool |
KeepAlive
Gets whether KeepAlive HTTP option is set |
ClintHeyer.Httpd.HttpMethod |
Method
Gets the HTTP method |
string |
RemoteHost
Gets the name the remote host used for itself (may not be true) |
string |
Request
Gets the original request string |
ClintHeyer.Httpd.HttpSession |
Session
Gets the session for this request, if any |
ClintHeyer.Httpd.URI |
URI
Gets the URI for this request |
string |
UserAgent
Gets the UserAgent HTTP header |
Method Summary | |
---|---|
string |
GetHeader(string key) Gets the specified header, or null if it doesn't exist |
System.Int64[,] |
GetRange(string range) Parses byte range data |
ClintHeyer.Httpd.HttpRequest |
Parse(byte[] data) Parses raw data into a request |
System.Collections.ArrayList | ParseData(byte[] data) |
void | ParseURI() |
void |
SetContext(ClintHeyer.Httpd.Context c) Sets the context for this request |
void |
SetSession(ClintHeyer.Httpd.HttpSession session) Sets the session for this request |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
private ClintHeyer.Httpd.Context context
private string credentials
private System.Collections.ArrayList data
private System.Collections.Hashtable headers
private bool keepAlive
private ClintHeyer.Httpd.HttpMethod method
private System.Collections.Hashtable parameters
private string request
private ClintHeyer.Httpd.HttpSession session
private ClintHeyer.Httpd.URI uri
private ClintHeyer.Httpd.HttpVersion version
Constructor Detail |
---|
private HttpRequest(string request, System.Collections.Hashtable headers, ClintHeyer.Httpd.HttpMethod method, ClintHeyer.Httpd.HttpVersion version, System.Collections.ArrayList data)
Property Detail |
---|
public ClintHeyer.Httpd.Context Context
Gets the Context this request originated from
Will normally be the context that handled original request, but could be server
public string Credentials
public System.Collections.ArrayList Data
Gets the data in this request
public ClintHeyer.Httpd.HttpVersion HttpVersion
Gets the HTTP version of this request
public bool KeepAlive
Gets whether KeepAlive HTTP option is set
public ClintHeyer.Httpd.HttpMethod Method
Gets the HTTP method
public string RemoteHost
Gets the name the remote host used for itself (may not be true)
public string Request
Gets the original request string
public ClintHeyer.Httpd.HttpSession Session
Gets the session for this request, if any
public ClintHeyer.Httpd.URI URI
Gets the URI for this request
public string UserAgent
Gets the UserAgent HTTP header
Method Detail |
---|
public string GetHeader(string key)
Gets the specified header, or null if it doesn't exist
Parameters:
key
- Keypublic System.Int64[,] GetRange(string range)
Parses byte range data
Parameters:
range
- Range headerpublic ClintHeyer.Httpd.HttpRequest Parse(byte[] data)
Parses raw data into a request
Parameters:
data
- DataClintHeyer.Httpd.MalformedRequestException
- Data does not contain a valid requestprivate System.Collections.ArrayList ParseData(byte[] data)
private void ParseURI()
internal void SetContext(ClintHeyer.Httpd.Context c)
Sets the context for this request
Parameters:
c
- Contextinternal void SetSession(ClintHeyer.Httpd.HttpSession session)
Sets the session for this request
Parameters:
session
-
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |