Files
ChunilENG/Packages/com.tivadar.best.http/Runtime/HTTP/HTTPRequestStates.cs
정영민 2dd5d814a7 update
2025-02-20 09:59:37 +09:00

51 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
}
}