IHttpMessageWriter.Write(IHttpMessage) 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.
Writes an HTTP message start line and headers to the associated session output buffer.
[Android.Runtime.Register("write", "(Lorg/apache/http/HttpMessage;)V", "GetWrite_Lorg_apache_http_HttpMessage_Handler:Org.Apache.Http.IO.IHttpMessageWriterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Write(Org.Apache.Http.IHttpMessage? message);
[<Android.Runtime.Register("write", "(Lorg/apache/http/HttpMessage;)V", "GetWrite_Lorg_apache_http_HttpMessage_Handler:Org.Apache.Http.IO.IHttpMessageWriterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Write : Org.Apache.Http.IHttpMessage -> unit
Parameters
- message
- IHttpMessage
The HTTP message whose start line and headers are to be written.
- Attributes
Exceptions
An I/O error occurs while writing the message.
The writer cannot format the HTTP message.
Remarks
This operation does not write the message body or call Flush(). Writes can cause buffered data to be sent to the underlying stream when the buffer fills.
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.