Class HttpResponseMessageExtensions
Extensions for Http
Inherited Members
Namespace: Google.Apis.Responses
Assembly: Google.Apis.dll
Syntax
public static class HttpResponseMessageExtensions
Methods
DeserializeErrorAsync(HttpResponseMessage, string, ISerializer)
Attempts to deserialize a Google.response
.
Declaration
public static Task<RequestError> DeserializeErrorAsync(this HttpResponseMessage response, string name, ISerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Http |
response | |
string | name | |
ISerializer | serializer |
Returns
Type | Description |
---|---|
Task<Request |
Remarks
This method will throw a Google.
- The
response
or its Content are null. - Or the deserialization attempt throws a Newtonsoft.
Json. .Json Exception - Or the deserilization attempt returns null.
response
Content
will be bubbled up.
Otherwise this method will return the deserialized Google.