Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

GoogleWorkspaceHttpResponse

OfficeIMO.GoogleWorkspace

Namespace
OfficeIMO.GoogleWorkspace
Assembly
OfficeIMO.GoogleWorkspace
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Buffered response data returned by GoogleWorkspaceHttpTransport.SendRawAsync.

Inheritance

  • object
  • GoogleWorkspaceHttpResponse

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

DeserializeJson``1 2 overloads
public T? DeserializeJson<T>() #

Deserializes the response body as JSON using runtime metadata.

Type Parameters

T
Expected response type.

Returns

T? The deserialized value.

Exceptions

  • InvalidOperationException – The body cannot be deserialized to a non-null value.
public T? DeserializeJson<T>(JsonTypeInfo<T?> typeInfo) #

Deserializes the response body with source-generated JSON metadata.

Type Parameters

T

Parameters

typeInfo System.Text.Json.Serialization.Metadata.JsonTypeInfo<T?> required

Returns

T?
public string? GetHeader(string name) #

Returns the first value for a response header.

Parameters

name string required
Case-insensitive header name.

Returns

string? The first value, or null when the header is absent.

Properties

public HttpStatusCode StatusCode { get; } #

Gets the HTTP status code accepted by the transport.

public byte[] Body { get; } #

Gets the buffered response body.

public string? MediaType { get; } #

Gets the declared response media type, when supplied.

public IReadOnlyDictionary<string, IReadOnlyList<string>> Headers { get; } #

Gets response and content headers using case-insensitive names.

public string BodyText { get; } #

Gets the response body decoded as UTF-8 text.