public static class HttpExtenstions
Extension methods to HttpRequestMessage and HttpResponseMessage .
Namespace
Google.Apis.HttpAssembly
Google.Apis.Core.dll
Methods
SetEmptyContent(HttpRequestMessage)
public static HttpContent SetEmptyContent(this HttpRequestMessage request)
A Google.Apis utility method for setting an empty HTTP content.
ToDelegatingHandler(IHttpExecuteInterceptor)
public static DelegatingHandler ToDelegatingHandler(this IHttpExecuteInterceptor interceptor)
Creates a DelegatingHandler
which applies the execution interceptor
in interceptor
(usually a credential) before delegating onwards.
The InnerHandler
of the returned handler must be specified before
the first request is made.
interceptor
IHttpExecuteInterceptor
The interceptor to execute before the remainder of the handler chain. Must not be null.
ToDelegatingHandler(IHttpExecuteInterceptor, HttpMessageHandler)
public static DelegatingHandler ToDelegatingHandler(this IHttpExecuteInterceptor interceptor, HttpMessageHandler innerHandler)
Creates a DelegatingHandler
which applies the execution interceptor
in interceptor
(usually a credential) before delegating onwards.
interceptor
IHttpExecuteInterceptor
The interceptor to execute before the remainder of the handler chain. Must not be null.
innerHandler

