Sdílet prostřednictvím


HttpEngine.OpenConnection(URL) Method

Definition

Establishes a new connection to the resource specified by the URLurl.

[Android.Runtime.Register("openConnection", "(Ljava/net/URL;)Ljava/net/URLConnection;", "GetOpenConnection_Ljava_net_URL_Handler", ApiSince=34)]
public abstract Java.Net.URLConnection OpenConnection (Java.Net.URL url);
[<Android.Runtime.Register("openConnection", "(Ljava/net/URL;)Ljava/net/URLConnection;", "GetOpenConnection_Ljava_net_URL_Handler", ApiSince=34)>]
abstract member OpenConnection : Java.Net.URL -> Java.Net.URLConnection

Parameters

url
URL

URL of resource to connect to.

Returns

an java.net.HttpURLConnection instance implemented by this HttpEngine.

Attributes

Remarks

Establishes a new connection to the resource specified by the URLurl.

<b>Note:</b> This java.net.HttpURLConnection implementation is subject to certain limitations, see #createUrlStreamHandlerFactory for details.

Java documentation for android.net.http.HttpEngine.openConnection(java.net.URL).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to