HttpsRequest 构造函数

定义

重载

HttpsRequest()
HttpsRequest(URL url, HttpsMethod method, byte[] body, String userAgentString)

Constructor. Takes a URL as an argument and returns an HTTPS request that is ready to be sent.

HttpsRequest(URL url, HttpsMethod method, byte[] body, String userAgentString, ProxySettings proxySettings)

Constructor. Takes a URL as an argument and returns an HTTPS request that is ready to be sent.

HttpsRequest()

protected HttpsRequest()

HttpsRequest(URL url, HttpsMethod method, byte[] body, String userAgentString)

Constructor. Takes a URL as an argument and returns an HTTPS request that is ready to be sent.

public HttpsRequest(URL url, HttpsMethod method, byte[] body, String userAgentString)

参数

url
URL

the URL for the request.

method
HttpsMethod

the HTTPS request method (i.e. GET).

body
byte []

the request body. Must be an array of size 0 if the request method is GET or DELETE.

userAgentString
String

the user agent string to attach to all http communications

HttpsRequest(URL url, HttpsMethod method, byte[] body, String userAgentString, ProxySettings proxySettings)

Constructor. Takes a URL as an argument and returns an HTTPS request that is ready to be sent.

public HttpsRequest(URL url, HttpsMethod method, byte[] body, String userAgentString, ProxySettings proxySettings)

参数

url
URL

the URL for the request.

method
HttpsMethod

the HTTPS request method (i.e. GET).

body
byte []

the request body. Must be an array of size 0 if the request method is GET or DELETE.

userAgentString
String

the user agent string to attach to all http communications

proxySettings
ProxySettings

The proxy settings to use when connecting. If null then no proxy will be used

适用于