ArmNetworkModelFactory.NetworkHttpConfiguration Method

Definition

public static Azure.ResourceManager.Network.Models.NetworkHttpConfiguration NetworkHttpConfiguration(Azure.ResourceManager.Network.Models.NetworkWatcherHttpMethod? method = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkWatcherHttpHeader> headers = default, System.Collections.Generic.IEnumerable<int> validStatusCodes = default);
static member NetworkHttpConfiguration : Nullable<Azure.ResourceManager.Network.Models.NetworkWatcherHttpMethod> * seq<Azure.ResourceManager.Network.Models.NetworkWatcherHttpHeader> * seq<int> -> Azure.ResourceManager.Network.Models.NetworkHttpConfiguration
Public Shared Function NetworkHttpConfiguration (Optional method As Nullable(Of NetworkWatcherHttpMethod) = Nothing, Optional headers As IEnumerable(Of NetworkWatcherHttpHeader) = Nothing, Optional validStatusCodes As IEnumerable(Of Integer) = Nothing) As NetworkHttpConfiguration

Parameters

method
Nullable<NetworkWatcherHttpMethod>

HTTP method.

headers
IEnumerable<NetworkWatcherHttpHeader>

List of HTTP headers.

validStatusCodes
IEnumerable<Int32>

Valid status codes.

Returns

A new NetworkHttpConfiguration instance for mocking.

Applies to