HttpURLConnection.RequestMethod Proprietà

Definizione

Ottenere il metodo di richiesta. -oppure- Impostare il metodo per la richiesta URL, uno dei seguenti: <UL<>LI>GET <LI POST <LI>>HEAD <LI>OPTIONS <LI>PUT <LI DELETE <LI>>TRACE </UL> sono legali, soggetti alle restrizioni del protocollo.

public virtual string? RequestMethod { [Android.Runtime.Register("getRequestMethod", "()Ljava/lang/String;", "GetGetRequestMethodHandler")] get; [Android.Runtime.Register("setRequestMethod", "(Ljava/lang/String;)V", "GetSetRequestMethod_Ljava_lang_String_Handler")] set; }
[<get: Android.Runtime.Register("getRequestMethod", "()Ljava/lang/String;", "GetGetRequestMethodHandler")>]
[<set: Android.Runtime.Register("setRequestMethod", "(Ljava/lang/String;)V", "GetSetRequestMethod_Ljava_lang_String_Handler")>]
member this.RequestMethod : string with get, set

Valore della proprietà

metodo di richiesta HTTP

Attributi

Eccezioni

se viene chiamato dopo la connessione o il metodo non è supportato da questa implementazione HTTP.

Commenti

Documentazione del getter delle proprietà:

Ottenere il metodo di richiesta.

per java.net.HttpURLConnection.getRequestMethod().

Documentazione del setter delle proprietà:

Impostare il metodo per la richiesta URL, uno dei seguenti: <UL<>LI>GET <LI>HEAD><< LI>OPTIONS <LI>PUT <LI DELETE <LI>>TRACE </UL> sono legali, soggetti alle restrizioni del protocollo. Il metodo predefinito è GET.

per java.net.HttpURLConnection.setRequestMethod(java.lang.String).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a

Vedi anche