UrlRequest.Builder.SetHttpMethod(String) 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.
Sets the HTTP method verb to use for this request.
[Android.Runtime.Register("setHttpMethod", "(Ljava/lang/String;)Landroid/net/http/UrlRequest$Builder;", "GetSetHttpMethod_Ljava_lang_String_Handler", ApiSince=34)]
public abstract Android.Net.Http.UrlRequest.Builder SetHttpMethod(string method);
[<Android.Runtime.Register("setHttpMethod", "(Ljava/lang/String;)Landroid/net/http/UrlRequest$Builder;", "GetSetHttpMethod_Ljava_lang_String_Handler", ApiSince=34)>]
abstract member SetHttpMethod : string -> Android.Net.Http.UrlRequest.Builder
Parameters
- method
- String
"GET", "HEAD", "DELETE", "POST" or "PUT". This value cannot be null.
Returns
the builder to facilitate chaining. This value cannot be null.
- Attributes
Remarks
Sets the HTTP method verb to use for this request.
The default when this method is not called is "GET" if the request has no body or "POST" if it does.
Android reference for android.net.http.UrlRequest.Builder.setHttpMethod.
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.