Class ResponseEventArgs
Provides information about HTTP response details for uploader operations.
Inheritance
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class ResponseEventArgs : Object
Remarks
This class encapsulates the HTTP response information received from server-side operations during file upload, removal, or other uploader-related requests. It provides comprehensive details about the server response, including headers, status codes, and response content, enabling developers to handle server responses appropriately.
Constructors
ResponseEventArgs()
Declaration
public ResponseEventArgs()
Properties
Headers
Gets or sets the HTTP response headers received from the server.
Declaration
public string Headers { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the response headers, or |
Remarks
This property contains the HTTP headers returned by the server in response to the upload or removal request. The headers provide additional metadata about the response and can be used for authentication, content type verification, or custom application logic.
ReadyState
Gets or sets the current ready state of the HTTP response.
Declaration
public object ReadyState { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An object representing the ready state of the response, or |
Remarks
This property indicates the current state of the HTTP request/response cycle, typically corresponding to XMLHttpRequest ready states (0-4). It helps track the progress of the request from initiation to completion.
ResponseText
Gets or sets the response content received from the server.
Declaration
public string ResponseText { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the response body content, or |
Remarks
This property contains the actual response data sent by the server, which may include JSON data, HTML content, or plain text messages. This content is typically used to determine the success or failure details of the upload or removal operation.
StatusCode
Gets or sets the HTTP status code returned by the server.
Declaration
public object StatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An object representing the HTTP status code, or |
Remarks
This property contains the HTTP status code (such as 200, 404, 500) returned by the server. The status code indicates the success or failure of the request and helps determine the appropriate handling of the server response.
StatusText
Gets or sets the HTTP status text associated with the status code.
Declaration
public string StatusText { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the status text (e.g., "OK", "Not Found", "Internal Server Error"), or |
Remarks
This property provides a human-readable description of the HTTP status code returned by the server. It complements the status code with descriptive text that can be useful for logging, debugging, or user feedback purposes.
WithCredentials
Gets or sets a value indicating whether credentials are included in cross-origin requests.
Declaration
public bool WithCredentials { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
This property indicates whether the HTTP request included credentials (such as cookies, authorization headers, or client certificates) when making cross-origin requests. This information is important for understanding the authentication context of the response.