Photon Server API
Public Member Functions | Public Attributes | Properties | List of all members
Photon.SocketServer.Net.AsyncHttpRequest Class Reference

Public Member Functions

 AsyncHttpRequest (HttpWebRequest webRequest, Action< AsyncHttpRequest > callBack)
 
 AsyncHttpRequest (HttpWebRequest webRequest, Action< AsyncHttpRequest > callBack, object state)
 
bool Cancel ()
 
void GetAsync ()
 
void PostAsync (byte[] content)
 
string GetDebugInfo ()
 

Public Attributes

readonly HttpWebRequest WebRequest
 

Properties

Exception Exception [get, set]
 Gets the Exception that caused the request to end prematurely. If the request completed successfully, this will return null. More...
 
int ReadBufferSize [get, set]
 
byte[] Response [get]
 
object State [get, set]
 
AsyncHttpRequestStatus Status [get]
 
HttpWebResponse WebResponse [get]
 
WebExceptionStatus WebStatus [get]
 
TimeSpan Elapsedtime [get]
 
long ElapsedTicks [get]
 

Constructor & Destructor Documentation

Photon.SocketServer.Net.AsyncHttpRequest.AsyncHttpRequest ( HttpWebRequest  webRequest,
Action< AsyncHttpRequest callBack 
)
inline
Photon.SocketServer.Net.AsyncHttpRequest.AsyncHttpRequest ( HttpWebRequest  webRequest,
Action< AsyncHttpRequest callBack,
object  state 
)
inline

Member Function Documentation

bool Photon.SocketServer.Net.AsyncHttpRequest.Cancel ( )
inline
void Photon.SocketServer.Net.AsyncHttpRequest.GetAsync ( )
inline
string Photon.SocketServer.Net.AsyncHttpRequest.GetDebugInfo ( )
inline
void Photon.SocketServer.Net.AsyncHttpRequest.PostAsync ( byte[]  content)
inline

Member Data Documentation

readonly HttpWebRequest Photon.SocketServer.Net.AsyncHttpRequest.WebRequest

Property Documentation

long Photon.SocketServer.Net.AsyncHttpRequest.ElapsedTicks
get
TimeSpan Photon.SocketServer.Net.AsyncHttpRequest.Elapsedtime
get
Exception Photon.SocketServer.Net.AsyncHttpRequest.Exception
getset

Gets the Exception that caused the request to end prematurely. If the request completed successfully, this will return null.

int Photon.SocketServer.Net.AsyncHttpRequest.ReadBufferSize
getset
byte [] Photon.SocketServer.Net.AsyncHttpRequest.Response
get
object Photon.SocketServer.Net.AsyncHttpRequest.State
getset
AsyncHttpRequestStatus Photon.SocketServer.Net.AsyncHttpRequest.Status
get
HttpWebResponse Photon.SocketServer.Net.AsyncHttpRequest.WebResponse
get
WebExceptionStatus Photon.SocketServer.Net.AsyncHttpRequest.WebStatus
get