DefaultRequestDirector.CreateConnectRequest(HttpRoute, IHttpContext) 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.
Creates the CONNECT request for tunnelling.
[Android.Runtime.Register("createConnectRequest", "(Lorg/apache/http/conn/routing/HttpRoute;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpRequest;", "GetCreateConnectRequest_Lorg_apache_http_conn_routing_HttpRoute_Lorg_apache_http_protocol_HttpContext_Handler")]
protected virtual Org.Apache.Http.IHttpRequest? CreateConnectRequest(Org.Apache.Http.Conn.Routing.HttpRoute? route, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("createConnectRequest", "(Lorg/apache/http/conn/routing/HttpRoute;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpRequest;", "GetCreateConnectRequest_Lorg_apache_http_conn_routing_HttpRoute_Lorg_apache_http_protocol_HttpContext_Handler")>]
abstract member CreateConnectRequest : Org.Apache.Http.Conn.Routing.HttpRoute * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpRequest
override this.CreateConnectRequest : Org.Apache.Http.Conn.Routing.HttpRoute * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpRequest
Parameters
- route
- HttpRoute
The route whose target host and port form the CONNECT request authority.
- context
- IHttpContext
The execution context. This implementation does not read it.
Returns
A CONNECT request with the target's host and port and the protocol version from the director's parameters. A missing target port is obtained from the scheme registry.
- Attributes
Remarks
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.