Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: HttpResponseContent Create(string, string, HttpStatusCode, HttpResponseHeaders)

Declaration

public static HttpResponseContent Create(
    string content,
    string contentType,
    HttpStatusCode status = HttpStatusCode._200_OK,
    HttpResponseHeaders headers = null
)

Summary

Returns the specified content to the client with the specified MIME type.

Parameters

stringcontent Content to return to the client.
stringcontentType MIME type to use. This overrides any MIME type specified in headers (if any).
HttpStatusCodestatus HTTP status code to use in the response.
HttpResponseHeadersheaders Headers to use in the response, or null to use default values.