Language

IHttpRequestFactory.NewHttpRequest Method

Definition

Overloads

Name Description
NewHttpRequest(IRequestLine)

Creates an HTTP request from an existing request line.

NewHttpRequest(String, String)

Creates an HTTP request from a method and request URI.

NewHttpRequest(IRequestLine)

Creates an HTTP request from an existing request line.

[Android.Runtime.Register("newHttpRequest", "(Lorg/apache/http/RequestLine;)Lorg/apache/http/HttpRequest;", "GetNewHttpRequest_Lorg_apache_http_RequestLine_Handler:Org.Apache.Http.IHttpRequestFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.Apache.Http.IHttpRequest? NewHttpRequest(Org.Apache.Http.IRequestLine? requestline);
[<Android.Runtime.Register("newHttpRequest", "(Lorg/apache/http/RequestLine;)Lorg/apache/http/HttpRequest;", "GetNewHttpRequest_Lorg_apache_http_RequestLine_Handler:Org.Apache.Http.IHttpRequestFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member NewHttpRequest : Org.Apache.Http.IRequestLine -> Org.Apache.Http.IHttpRequest

Parameters

requestline
IRequestLine

The request line that supplies the method, URI, and protocol version.

Returns

A new request initialized with requestline.

Attributes

Exceptions

The factory does not support the method in requestline.

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.

Applies to

NewHttpRequest(String, String)

Creates an HTTP request from a method and request URI.

[Android.Runtime.Register("newHttpRequest", "(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/http/HttpRequest;", "GetNewHttpRequest_Ljava_lang_String_Ljava_lang_String_Handler:Org.Apache.Http.IHttpRequestFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.Apache.Http.IHttpRequest? NewHttpRequest(string? method, string? uri);
[<Android.Runtime.Register("newHttpRequest", "(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/http/HttpRequest;", "GetNewHttpRequest_Ljava_lang_String_Ljava_lang_String_Handler:Org.Apache.Http.IHttpRequestFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member NewHttpRequest : string * string -> Org.Apache.Http.IHttpRequest

Parameters

method
String

The HTTP method for the new request.

uri
String

The request URI for the new request.

Returns

A new request initialized with method and uri.

Attributes

Exceptions

The factory does not support method.

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.

Applies to