Class
GoogleWorkspaceHttpResponse
OfficeIMO.GoogleWorkspace
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?>
Returns
T?public string? GetHeader(string name) #Returns the first value for a response header.
Parameters
- name string
- Case-insensitive header name.
Returns
string? The first value, or null when the header is absent.Inherited Methods
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.