API Reference
Class
GoogleWorkspaceHttpResponse
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?>
public String? GetHeader(String name) #Returns:
String?Returns the first value for a response header.
Parameters
- name System.String
- Case-insensitive header name.
Returns
The first value, or null when the header is absent.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public HttpStatusCode StatusCode { get; } #Gets the HTTP status code accepted by the transport.
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.