Class HttpExtenstions
Extension methods to Http
Inherited Members
Namespace: Google.Apis.Http
Assembly: Google.Apis.Core.dll
Syntax
public static class HttpExtenstions
Methods
SetEmptyContent(HttpRequestMessage)
A Google.Apis utility method for setting an empty HTTP content.
Declaration
public static HttpContent SetEmptyContent(this HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
Http |
request |
Returns
Type | Description |
---|---|
Http |
ToDelegatingHandler(IHttpExecuteInterceptor)
Creates a Delegatinginterceptor
(usually a credential) before delegating onwards.
The Inner
Declaration
public static DelegatingHandler ToDelegatingHandler(this IHttpExecuteInterceptor interceptor)
Parameters
Type | Name | Description |
---|---|---|
IHttp |
interceptor | The interceptor to execute before the remainder of the handler chain. Must not be null. |
Returns
Type | Description |
---|---|
Delegating |
A delegating HTTP message handler. |
ToDelegatingHandler(IHttpExecuteInterceptor, HttpMessageHandler)
Creates a Delegatinginterceptor
(usually a credential) before delegating onwards.
Declaration
public static DelegatingHandler ToDelegatingHandler(this IHttpExecuteInterceptor interceptor, HttpMessageHandler innerHandler)
Parameters
Type | Name | Description |
---|---|---|
IHttp |
interceptor | The interceptor to execute before the remainder of the handler chain. Must not be null. |
Http |
innerHandler | The initial inner handler. |
Returns
Type | Description |
---|---|
Delegating |
A delegating HTTP message handler. |