Aller au contenu principal

AxiosResponse Class

Axios.Net › AxiosNet.Models

The response to a request, with an untyped body.

public class AxiosResponse

Inheritance System.Object → AxiosResponse

Derived
↳ AxiosResponse<T>

Properties​

AxiosResponse.Config Property​

The config the request was sent with.

public AxiosNet.Config.AxiosRequestConfig Config { get; init; }

Property Value​

AxiosRequestConfig

AxiosResponse.Data Property​

Untyped body: the converted value, or the (transformed) body text on error responses.

public object? Data { get; init; }

Property Value​

System.Object

AxiosResponse.Duration Property​

Approximate time taken until the response was fully received.

public System.TimeSpan Duration { get; init; }

Property Value​

System.TimeSpan

AxiosResponse.Headers Property​

Response and content headers.

public AxiosNet.Models.AxiosHeaders Headers { get; init; }

Property Value​

AxiosHeaders

AxiosResponse.Request Property​

The request that was sent.

public System.Net.Http.HttpRequestMessage? Request { get; init; }

Property Value​

System.Net.Http.HttpRequestMessage

AxiosResponse.Status Property​

HTTP status code.

public int Status { get; init; }

Property Value​

System.Int32

AxiosResponse.StatusText Property​

Reason phrase sent by the server.

public string? StatusText { get; init; }

Property Value​

System.String