- Initial commit

This commit is contained in:
Timur Kozanov
2026-07-03 05:02:26 +03:00
commit 374ff1e689
4080 changed files with 388870 additions and 0 deletions

View File

@ -0,0 +1,50 @@
using System;
namespace Best.HTTP
{
/// <summary>
/// Possible logical states of a HTTTPRequest object.
/// </summary>
public enum HTTPRequestStates : int
{
/// <summary>
/// Initial status of a request. No callback will be called with this status.
/// </summary>
Initial,
/// <summary>
/// The request queued for processing.
/// </summary>
Queued,
/// <summary>
/// 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.
/// </summary>
Processing,
/// <summary>
/// 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 requests Exception property will be null.
/// </summary>
Finished,
/// <summary>
/// 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.
/// </summary>
Error,
/// <summary>
/// The request aborted by the client(HTTPRequests Abort() function). The user defined callback will be called with a null response. The requests Exception property will be null.
/// </summary>
Aborted,
/// <summary>
/// Connecting to the server timed out. The user defined callback will be called with a null response. The requests Exception property will be null.
/// </summary>
ConnectionTimedOut,
/// <summary>
/// The request didn't finished in the given time. The user defined callback will be called with a null response. The requests Exception property will be null.
/// </summary>
TimedOut
}
}