Apachai.ContextExtensions.HandleJson C# (CSharp) 메소드

HandleJson() 공개 정적인 메소드

public static HandleJson ( this response, string json ) : void
response this
json string
리턴 void
        public static void HandleJson(this IHttpResponse response, string json)
        {
            if (string.IsNullOrEmpty (json)) {
                response.StatusCode = 404;
                response.End ();
            } else {
                RawServing (response, "application/json", 600, json);
            }
        }