How can I set response status code when using `RoutingContext::json` method?

后端 未结 0 872

I have this code:

get("/signUp").handler {
  // some logic
  it.response()
    .setStatusCode(409)
    .putHeader("content-type", "applic         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题