程序包 | 说明 |
---|---|
com.blade.mvc | |
com.blade.mvc.handler | |
com.blade.mvc.hook | |
com.blade.mvc.http | |
com.blade.security.web.csrf | |
com.blade.server.netty |
限定符和类型 | 方法和说明 |
---|---|
static Response |
WebContext.response()
Get current thread context Response instance
|
构造器和说明 |
---|
WebContext(Request request,
Response response) |
限定符和类型 | 方法和说明 |
---|---|
void |
RouteHandler.handle(Request request,
Response response)
Route handler
|
限定符和类型 | 方法和说明 |
---|---|
Response |
Signature.response() |
限定符和类型 | 类和说明 |
---|---|
class |
HttpResponse
HttpResponse
|
限定符和类型 | 方法和说明 |
---|---|
default Response |
Response.badRequest()
Set current response http code 400
|
Response |
HttpResponse.contentType(CharSequence contentType) |
Response |
Response.contentType(CharSequence contentType)
Setting Response ContentType
|
Response |
HttpResponse.cookie(Cookie cookie) |
Response |
Response.cookie(Cookie cookie)
add raw response cookie
|
Response |
HttpResponse.cookie(String name,
String value) |
Response |
Response.cookie(String name,
String value)
add Cookie
|
Response |
HttpResponse.cookie(String name,
String value,
int maxAge) |
Response |
Response.cookie(String name,
String value,
int maxAge)
Setting Cookie
|
Response |
HttpResponse.cookie(String name,
String value,
int maxAge,
boolean secured) |
Response |
Response.cookie(String name,
String value,
int maxAge,
boolean secured)
Setting Cookie
|
Response |
HttpResponse.cookie(String path,
String name,
String value,
int maxAge,
boolean secured) |
Response |
Response.cookie(String path,
String name,
String value,
int maxAge,
boolean secured)
Setting Cookie
|
Response |
HttpResponse.header(CharSequence name,
CharSequence value) |
Response |
Response.header(CharSequence name,
CharSequence value)
Set current response header
|
default Response |
Response.notFound()
Set current response http code 404
|
Response |
HttpResponse.removeCookie(String name) |
Response |
Response.removeCookie(String name)
remove cookie
|
Response |
HttpResponse.status(int status) |
Response |
Response.status(int status)
Setting Response Status
|
default Response |
Response.unauthorized()
Set current response http code 401
|
构造器和说明 |
---|
HttpResponse(Response response) |
构造器和说明 |
---|
CsrfMiddleware(Consumer<Response> csrfHandle) |
CsrfMiddleware(CsrfConfig csrfConfig,
Consumer<Response> csrfHandle) |
限定符和类型 | 方法和说明 |
---|---|
Boolean |
StaticFileHandler.handle(io.netty.channel.ChannelHandlerContext ctx,
Request request,
Response response)
print static file to client
|
R |
RequestHandler.handle(io.netty.channel.ChannelHandlerContext ctx,
Request request,
Response response) |
Copyright © 2018. All rights reserved.