HttpOutgoingRequestResponse Class
From RemObjects Software
This is a Internet Pack Architecture entry
Feel free to add your notes to this topic below.
Overview
Abstract base class representing an outgoing HTTP message - either a Request to be sent from the HttpClient, or a response to be sent from the HttpServer. You will usually deal with the separate descendants HttpClientRequest or HttpServerResponse that descend from this class.
Namespace
Declaration (C#)
public abstract class HttpOutgoingRequestResponse : HttpRequestResponse;
Members
Properties
| | |
|---|---|
| CloseStream | When ContentSource is set to ContentStream (and a ContentStream is assigned), this property determines if the Stream should be automatically closed after sending it to the connection (true) or not (false) |
| ContentBytes | Assign a byte array to send back as HTTP body to this property |
| ContentSource | Defines which property - ContentBytes, ContentStream or ContantString will be used to send the body of the response.
Assigning any of these three properties will automatically set the ContentSource property, so that the contet will be always sent from the appropriate source. |
| ContentStream | Assign a Stream to send back as HTTP body to this property.
When assigned (and ContentSource is set to ContentStream), you can use the CloseStream property to determine if the Stream should be automatically closed after sending it to the connection (true) or not (false) |
| ContentString | Assign a String to send back as HTTP body to this property |
See Also
Product: RemObjects Internet Pack
Current version: Internet Pack 'Vinci' (2.0)
Lists — Glossary — Features — How To — Components — Tools — Samples — Articles — Architecture — Issues
