ArmAppContainersModelFactory.ContainerAppHttpRequestInfo 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.
HTTPGet specifies the http request to perform.
public static Azure.ResourceManager.AppContainers.Models.ContainerAppHttpRequestInfo ContainerAppHttpRequestInfo(string host = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppHttpHeaderInfo> httpHeaders = default, string path = default, int port = 0, Azure.ResourceManager.AppContainers.Models.ContainerAppHttpScheme? scheme = default);
static member ContainerAppHttpRequestInfo : string * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppHttpHeaderInfo> * string * int * Nullable<Azure.ResourceManager.AppContainers.Models.ContainerAppHttpScheme> -> Azure.ResourceManager.AppContainers.Models.ContainerAppHttpRequestInfo
Public Shared Function ContainerAppHttpRequestInfo (Optional host As String = Nothing, Optional httpHeaders As IEnumerable(Of ContainerAppHttpHeaderInfo) = Nothing, Optional path As String = Nothing, Optional port As Integer = 0, Optional scheme As Nullable(Of ContainerAppHttpScheme) = Nothing) As ContainerAppHttpRequestInfo
Parameters
- host
- String
Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
- httpHeaders
- IEnumerable<ContainerAppHttpHeaderInfo>
Custom headers to set in the request. HTTP allows repeated headers.
- path
- String
Path to access on the HTTP server.
- port
- Int32
Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
- scheme
- Nullable<ContainerAppHttpScheme>
Scheme to use for connecting to the host. Defaults to HTTP.
Returns
A new ContainerAppHttpRequestInfo instance for mocking.