# GoogleWorkspaceHttpResponse

Buffered response data returned by GoogleWorkspaceHttpTransport.SendRawAsync.

Class 

`OfficeIMO.GoogleWorkspace`

**Namespace**

`OfficeIMO.GoogleWorkspace`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleWorkspaceHttpTransport.cs:1140](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1140)

**Modifiers**

sealed

Buffered response data returned by [GoogleWorkspaceHttpTransport.SendRawAsync](/api/google-workspace/officeimo-googleworkspace-googleworkspacehttptransport/).

## 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

- Method [GoogleWorkspaceHttpTransport.SendRawAsync](/api/google-workspace/officeimo-googleworkspace-googleworkspacehttptransport/#method-sendrawasync-string-net-http-httpmethod-string-func-system-net-http-httpcontent-officeimo-googleworkspace-googleworkspacerequestsafety-string-officeimo-googleworkspace-translationreport-threading-cancellationtoken-action-system-net-http-httprequestmessage-collections-generic-ireadonlycollection-system-net-httpstatuscode-boolean-string-officeimo-googleworkspace-googleworkspacemutationkind-officeimo-googleworkspace-googleworkspacerevisionprecondition-collections-generic-ireadonlycollection-system-string-boolean)

Filter members 

Show inherited

## Methods

DeserializeJson``1 2 overloads

`public T? DeserializeJson<T>()` [#](#method-deserializejson)

[GoogleWorkspaceHttpTransport.cs:1150](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1150)

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)` [#](#method-deserializejson-text-json-serialization-metadata-jsontypeinfo)

[GoogleWorkspaceHttpTransport.cs:1162](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1162)

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)` [#](#method-getheader-string)

[GoogleWorkspaceHttpTransport.cs:1140](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1140)

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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public HttpStatusCode StatusCode { get; }` [#](#property-statuscode)

[GoogleWorkspaceHttpTransport.cs:1126](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1126)

Gets the HTTP status code accepted by the transport.

`public byte[] Body { get; }` [#](#property-body)

[GoogleWorkspaceHttpTransport.cs:1128](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1128)

Gets the buffered response body.

`public string? MediaType { get; }` [#](#property-mediatype)

[GoogleWorkspaceHttpTransport.cs:1130](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1130)

Gets the declared response media type, when supplied.

`public IReadOnlyDictionary<string, IReadOnlyList<string>> Headers { get; }` [#](#property-headers)

[GoogleWorkspaceHttpTransport.cs:1132](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1132)

Gets response and content headers using case-insensitive names.

`public string BodyText { get; }` [#](#property-bodytext)

[GoogleWorkspaceHttpTransport.cs:1134](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1134)

Gets the response body decoded as UTF-8 text.

<!-- PowerForge markdown artifact sha256:F23C5B18956FBC08EB1C417A4DD75B8F634B913187CB07878D24BE2F0FAD0F6A -->
