public static HttpHandlerBuilder Respond(this HttpResponseBuilder builder, string response) { return(builder.Do(c => c.Response.WriteAsync(response).Wait())); }
public static HttpHandlerBuilder Respond(this HttpResponseBuilder builder, object response) { var strResponse = JsonConvert.SerializeObject(response, JsonSerializerSettings); return(builder.Respond(strResponse)); }