Package | Description |
---|---|
bayou.http |
Http server.
|
bayou.websocket |
WebSocket server.
|
Modifier and Type | Class and Description |
---|---|
class |
HttpResponseImpl
A mutable implementation of HttpResponse.
|
Modifier and Type | Field and Description |
---|---|
HttpResponse |
HttpAccess.response
The http response.
|
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
HotHttpHandler.handleReloadError(Exception error)
Create a response in case the reloader encounters an error.
|
HttpResponse |
HttpResponseException.response() |
Modifier and Type | Method and Description |
---|---|
Async<HttpResponse> |
HttpClient.doGet(String absoluteUri)
Send a GET request.
|
static Async<HttpResponse> |
HttpResponse.file(int statusCode,
String filePath)
Create a response serving the file.
|
Async<HttpResponse> |
HttpHandler.handle(HttpRequest request)
Generate a response for the request.
|
Async<HttpResponse> |
HotHttpHandler.handle(HttpRequest request)
Handle an http request.
|
Async<HttpResponse> |
HttpClientConnection.receive()
Receive the next non-1xx response.
|
Async<HttpResponse> |
HttpClientConnection.receive0()
Receive the next response, which could be 1xx.
|
Async<HttpResponse> |
HttpClient.send(HttpRequest request)
Send a request and wait for the final response.
|
Async<HttpResponse> |
HttpClient.send0(HttpRequest request,
TcpAddress dest)
Send a request to `dest`.
|
Async<HttpResponse> |
HttpUpgrader.tryUpgrade(HttpRequest httpRequest,
TcpConnection tcpConnection)
Try to upgrade the http connection.
|
Modifier and Type | Method and Description |
---|---|
static HttpResponseImpl |
HttpResponse.cache(HttpResponse response)
Cache the response in memory, particularly the body.
|
static HttpResponseImpl |
HttpResponse.gzip(HttpResponse response)
Compress the response with "gzip".
|
Async<Void> |
CookieStorage.setCookies(HttpRequest request,
HttpResponse response)
Save the cookies carried in the response.
|
static HttpResponseImpl |
HttpResponse.throttle(long bytesPerSecond,
HttpResponse response)
Throttle the response.
|
Constructor and Description |
---|
HttpAccess(HttpRequest request,
HttpResponse response,
long responseBodySize,
long timeRequestReceived,
long timeResponseBegins,
long timeResponseEnds,
Exception responseError)
Create an HttpAccess instance.
|
HttpResponseException(String message,
HttpResponse response) |
HttpResponseImpl(HttpResponse originResponse)
Copy an http response.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
WebSocketResponse.Reject.getHttpResponse()
The HTTP response.
|
Constructor and Description |
---|
Reject(HttpResponse httpResponse)
Create a Reject response.
|