This commit is contained in:
2026-06-15 18:18:16 +08:00
parent 97c9fba14e
commit 2b9f134e5f
4164 changed files with 386922 additions and 79 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
}
}