public static JToken ParseBody(HttpRequest request) { try { return(JToken.Parse(RestUtils.ReadBody(request))); } catch { } return(null); }
public static void Push(HttpResponse response, JsonOpStatus status, JToken data) { if (data != null) { Push(response, RestUtils.JsonOpStatus(status, data.ToString())); } else { Push(response, RestUtils.JsonOpStatus(status)); } }
public static void Push(HttpResponse response, JsonOpStatus status) { Push(response, RestUtils.JsonOpStatus(status)); }
public static void Push(HttpResponse response) { Push(response, RestUtils.JsonOpStatus(Rest.JsonOpStatus.Ok)); }