Org.Apache.Http.IHttpResponse.SetReasonPhrase Method
Updates the status line of this response with a new reason phrase.

Syntax

[Android.Runtime.Register("setReasonPhrase", "(Ljava/lang/String;)V", "GetSetReasonPhrase_Ljava_lang_String_Handler:Org.Apache.Http.IHttpResponseInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetReasonPhrase (string reason)

See Also

IHttpResponse.StatusLine
IHttpResponse.SetStatusLine(ProtocolVersion, System.Int32)

Parameters

reason
the new reason phrase as a single-line string, or null to unset the reason phrase

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif the status line has not be set

Remarks

Updates the status line of this response with a new reason phrase. The status line can only be updated if it is available. It must have been set either explicitly or in a constructor.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1