Table of Contents

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 long

The status code of the HTTP response.

content ThirdwebHttpContent

The content of the HTTP response.

isSuccessStatusCode bool

A 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

ThirdwebHttpContent

IsSuccessStatusCode

Gets or sets a value indicating whether the HTTP response is successful.

public bool IsSuccessStatusCode { get; set; }

Property Value

bool

StatusCode

Gets or sets the status code of the HTTP response.

public long StatusCode { get; set; }

Property Value

long

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.