MockedHttpClientHandler.CloneHttpRequestMessageAsync Method
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.
Clone everything of a HttpRequestMessage.
public static System.Threading.Tasks.Task<System.Net.Http.HttpRequestMessage> CloneHttpRequestMessageAsync (System.Net.Http.HttpRequestMessage request);
static member CloneHttpRequestMessageAsync : System.Net.Http.HttpRequestMessage -> System.Threading.Tasks.Task<System.Net.Http.HttpRequestMessage>
Public Shared Function CloneHttpRequestMessageAsync (request As HttpRequestMessage) As Task(Of HttpRequestMessage)
Parameters
- request
- HttpRequestMessage
The HttpRequestMessage to clone.
Returns
The cloned HttpRequestMessage.