你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

SessionProbeHttpGet Class

HTTPGet specifies the http request to perform.

Constructor

SessionProbeHttpGet()

Variables

Name Description
host
str

Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.

httpHeaders
list[<xref:"SessionProbeHttpGetHttpHeadersItem">]

Custom headers to set in the request. HTTP allows repeated headers.

path
str

Path to access on the HTTP server.

port
int

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. Required.

scheme
Union[str, <xref:"Scheme">]

Scheme to use for connecting to the host. Defaults to HTTP. Known values are: "HTTP" and "HTTPS".

Attributes

host

Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.

host: str

httpHeaders

Custom headers to set in the request. HTTP allows repeated headers.

httpHeaders: list['SessionProbeHttpGetHttpHeadersItem']

path

Path to access on the HTTP server.

path: str

port

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. Required.

port: Required[int]

scheme

"HTTP" and "HTTPS".

scheme: str | Scheme