限定符和类型 | 类和说明 |
---|---|
static class |
HttpStatusView.HttpStatusException
这个异常用于,在某个入口函数,如果你声明了 `@Fail("http:500")` 但是你真正的返回值想根据运行时决定。
|
构造器和说明 |
---|
HttpStatusView(HttpServerResponse info) |
HttpStatusView(int statusCode) |
HttpStatusView(Map<?,?> map) |
public static final View HTTP_404
public static final View HTTP_500
public static final View HTTP_502
public HttpStatusView(HttpServerResponse info)
public HttpStatusView(int statusCode)
public HttpStatusView(Map<?,?> map)
public static HttpStatusView.HttpStatusException makeThrow(int status, String body)
public HttpStatusView setBody(String body)
Copyright © 2017. All rights reserved.