ArmNetworkModelFactory.NetworkHttpConfiguration 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.
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.