Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: HttpResponseContent Json(JsonValue, HttpStatusCode, HttpResponseHeaders)

Declaration

public static HttpResponseContent Json(
    JsonValue content,
    HttpStatusCode status = HttpStatusCode._200_OK,
    HttpResponseHeaders headers = null
)

Summary

Returns the specified content to the client with the MIME type “application/json; charset=utf-8”.

Parameters

JsonValuecontent Content to return to the client.
HttpStatusCodestatus HTTP status code to use in the response.
HttpResponseHeadersheaders Headers to use in the response, or null to use default values.