Interface IHttpProtocolResponse
Interface which represents a HTTP response.
Namespace: VDS.RDF.Web
Assembly: dotNetRDF.dll
Syntax
public interface IHttpProtocolResponse
Remarks
Abstraction which allows us to reuse code for response processing across different HTTP server environments.
Properties
| Improve this Doc View SourceContentEncoding
Gets/Sets the Content Encoding for the response.
Declaration
Encoding ContentEncoding { get; set; }
Property Value
Type | Description |
---|---|
System.Text.Encoding |
ContentType
Gets/Sets the Content Type for the response.
Declaration
string ContentType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Headers
Gets the Headers for the response.
Declaration
NameValueCollection Headers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Specialized.NameValueCollection |
OutputStream
Gets the output stream.
Declaration
Stream OutputStream { get; }
Property Value
Type | Description |
---|---|
System.IO.Stream |
StatusCode
Gets/Sets the HTTP Status Code for the response.
Declaration
int StatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAddHeader(String, String)
Adds a Header to the resposne.
Declaration
void AddHeader(string header, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | header | Name. |
System.String | value | Value. |
Clear()
Clears the Response.
Declaration
void Clear()
Write(String)
Writes a String to the response body.
Declaration
void Write(string data)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | Data to write. |