HttpMessageInvoker Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes an instance of a HttpMessageInvoker class.
Overloads
HttpMessageInvoker(HttpMessageHandler) |
Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler. |
HttpMessageInvoker(HttpMessageHandler, Boolean) |
Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler. |
HttpMessageInvoker(HttpMessageHandler)
- Source:
- HttpMessageInvoker.cs
- Source:
- HttpMessageInvoker.cs
- Source:
- HttpMessageInvoker.cs
Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.
public:
HttpMessageInvoker(System::Net::Http::HttpMessageHandler ^ handler);
public HttpMessageInvoker (System.Net.Http.HttpMessageHandler handler);
new System.Net.Http.HttpMessageInvoker : System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpMessageInvoker
Public Sub New (handler As HttpMessageHandler)
Parameters
- handler
- HttpMessageHandler
The HttpMessageHandler responsible for processing the HTTP response messages.
Applies to
HttpMessageInvoker(HttpMessageHandler, Boolean)
- Source:
- HttpMessageInvoker.cs
- Source:
- HttpMessageInvoker.cs
- Source:
- HttpMessageInvoker.cs
Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.
public:
HttpMessageInvoker(System::Net::Http::HttpMessageHandler ^ handler, bool disposeHandler);
public HttpMessageInvoker (System.Net.Http.HttpMessageHandler handler, bool disposeHandler);
new System.Net.Http.HttpMessageInvoker : System.Net.Http.HttpMessageHandler * bool -> System.Net.Http.HttpMessageInvoker
Public Sub New (handler As HttpMessageHandler, disposeHandler As Boolean)
Parameters
- handler
- HttpMessageHandler
The HttpMessageHandler responsible for processing the HTTP response messages.
- disposeHandler
- Boolean
true
if the inner handler should be disposed of by Dispose(), false
if you intend to reuse the inner handler.