Class ThirdwebHttpResponseMessage
- Namespace
- Thirdweb
- Assembly
- Thirdweb.dll
Represents an HTTP response message used in the Thirdweb SDK.
public class ThirdwebHttpResponseMessage
- Inheritance
-
ThirdwebHttpResponseMessage
- Inherited Members
Remarks
Initializes a new instance of the ThirdwebHttpResponseMessage class.
Constructors
ThirdwebHttpResponseMessage(long, ThirdwebHttpContent, bool)
Represents an HTTP response message used in the Thirdweb SDK.
public ThirdwebHttpResponseMessage(long statusCode, ThirdwebHttpContent content, bool isSuccessStatusCode)
Parameters
statusCode
longThe status code of the HTTP response.
content
ThirdwebHttpContentThe content of the HTTP response.
isSuccessStatusCode
boolA value indicating whether the HTTP response is successful.
Remarks
Initializes a new instance of the ThirdwebHttpResponseMessage class.
Properties
Content
Gets or sets the content of the HTTP response.
public ThirdwebHttpContent Content { get; set; }
Property Value
IsSuccessStatusCode
Gets or sets a value indicating whether the HTTP response is successful.
public bool IsSuccessStatusCode { get; set; }
Property Value
StatusCode
Gets or sets the status code of the HTTP response.
public long StatusCode { get; set; }
Property Value
Methods
EnsureSuccessStatusCode()
Ensures that the HTTP response was successful.
public ThirdwebHttpResponseMessage EnsureSuccessStatusCode()
Returns
- ThirdwebHttpResponseMessage
The ThirdwebHttpResponseMessage instance.
Exceptions
- Exception
Thrown if the HTTP response was not successful.