Package | Description |
---|---|
sirius.web.http |
Built-in HTTP server based on netty.
|
Modifier and Type | Method and Description |
---|---|
Response |
Response.addHeader(CharSequence name,
Object value)
Adds the specified header.
|
Response |
Response.addHeaderIfNotExists(CharSequence name,
Object value)
Only adds the given header if no header with the given name does exist yet.
|
Response |
Response.cached()
Marks this response as cachable.
|
Response |
Response.cachedForSeconds(int numberOfSeconds)
Marks this response as cachable for the given amount of time.
|
Response |
Response.download(String name)
Instructs the browser to treat the response as download with the given file name.
|
Response |
Response.headers(sirius.kernel.commons.MultiMap<String,Object> inputHeaders)
Adds all given headers
|
Response |
Response.infinitelyCached()
Marks this response as infinitely cachable.
|
Response |
Response.inline(String name)
Instructs the browser to treat the response as inline-download with the given file name.
|
Response |
Response.named(String name)
Forces the use of a given name.
|
Response |
Response.noKeepalive()
Disables keep-alive protocol (even if it would have been otherwise supported).
|
Response |
Response.notCached()
Marks this response as not-cachable.
|
Response |
Response.privateCached()
Marks this response as only privately cachable (only the browser may cache it, but not a proxy etc.)
|
Response |
WebContext.respondWith()
Creates a response for this request.
|
Response |
Response.setHeader(CharSequence name,
Object value)
Sets the specified header.
|
Copyright © 2018. All rights reserved.