Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

GoogleWorkspaceHttpResponse

Namespace OfficeIMO.GoogleWorkspace
Assembly OfficeIMO.GoogleWorkspace
Source revision c8404474f9f2 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>() #
Returns: T?

Deserializes the response body as JSON using runtime metadata.

Type Parameters

T
Expected response type.

Returns

The deserialized value.

Exceptions

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

Deserializes the response body with source-generated JSON metadata.

Type Parameters

T

Parameters

typeInfo System.Text.Json.Serialization.Metadata.JsonTypeInfo<T?> requiredposition: 0
public String? GetHeader(String name) #
Returns: String?

Returns the first value for a response header.

Parameters

name System.String requiredposition: 0
Case-insensitive header name.

Returns

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.