Show / Hide Table of Contents

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 Source

ContentEncoding

Gets/Sets the Content Encoding for the response.
Declaration
Encoding ContentEncoding { get; set; }
Property Value
Type Description
System.Text.Encoding
| Improve this Doc View Source

ContentType

Gets/Sets the Content Type for the response.
Declaration
string ContentType { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Headers

Gets the Headers for the response.
Declaration
NameValueCollection Headers { get; }
Property Value
Type Description
System.Collections.Specialized.NameValueCollection
| Improve this Doc View Source

OutputStream

Gets the output stream.
Declaration
Stream OutputStream { get; }
Property Value
Type Description
System.IO.Stream
| Improve this Doc View Source

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 Source

AddHeader(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.
| Improve this Doc View Source

Clear()

Clears the Response.
Declaration
void Clear()
| Improve this Doc View Source

Write(String)

Writes a String to the response body.
Declaration
void Write(string data)
Parameters
Type Name Description
System.String data Data to write.

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • ContentEncoding
    • ContentType
    • Headers
    • OutputStream
    • StatusCode
  • Methods
    • AddHeader(String, String)
    • Clear()
    • Write(String)
  • Extension Methods
Back to top Generated by DocFX