using System; namespace Best.HTTP { /// /// Possible logical states of a HTTTPRequest object. /// public enum HTTPRequestStates : int { /// /// Initial status of a request. No callback will be called with this status. /// Initial, /// /// The request queued for processing. /// Queued, /// /// Processing of the request started. In this state the client will send the request, and parse the response. No callback will be called with this status. /// Processing, /// /// The request finished without problem. Parsing the response done, the result can be used. The user defined callback will be called with a valid response object. The request’s Exception property will be null. /// Finished, /// /// The request finished with an unexpected error. The user defined callback will be called with a null response object. The request's Exception property may contain more info about the error, but it can be null. /// Error, /// /// The request aborted by the client(HTTPRequest’s Abort() function). The user defined callback will be called with a null response. The request’s Exception property will be null. /// Aborted, /// /// Connecting to the server timed out. The user defined callback will be called with a null response. The request’s Exception property will be null. /// ConnectionTimedOut, /// /// The request didn't finished in the given time. The user defined callback will be called with a null response. The request’s Exception property will be null. /// TimedOut } }