Uses of Interface
io.helidon.webserver.http.ServerResponse
Package
Description
Helidon WebServer CORS Support.
Helidon WebServer HTTP specific APIs.
Helidon WebServer HTTP SPI.
Helidon WebServer Observability Metrics Support.
Helidon WebServer Security Support.
Helidon WebServer SSE Support.
-
Uses of ServerResponse in io.helidon.webserver.cors
Modifier and TypeMethodDescriptionprotected CorsSupportHelper
<ServerRequest, ServerResponse> CorsSupport.helper()
-
Uses of ServerResponse in io.helidon.webserver.http
Modifier and TypeClassDescriptionclass
ServerResponseBase<T extends ServerResponseBase<T>>
Base class for common server response tasks that can be shared across HTTP versions.Modifier and TypeMethodDescriptionSet header with a value.default ServerResponse
ServerResponse.header
(HeaderName name, String... values) Set a header.default ServerResponse
Not optimized method for setting a header.ServerResponse.next()
Continue processing with the next route (and if none found, return aStatus.NOT_FOUND_404
).Re-route using a different path.Re-route using a different path and query.default ServerResponse
ServerResponse.status
(int status) Status of the response.Status of the response.Completed when last byte is buffered for socket write.Modifier and TypeMethodDescriptionboolean
HttpSecurity.authenticate
(ServerRequest request, ServerResponse response, boolean requiredHint) Authenticates the current request according to security configuration.boolean
HttpSecurity.authorize
(ServerRequest request, ServerResponse response, String... roleHint) Authorize the current request according to security configuration.void
DirectHandlers.handle
(RequestException httpException, ServerResponse res, boolean keepAlive) Handle an HTTP Exception that occurred when request and response is available.void
ErrorHandler.handle
(ServerRequest req, ServerResponse res, T throwable) Error handling consumer.void
Handler.handle
(ServerRequest req, ServerResponse res) Handle request.void
SecureHandler.handle
(ServerRequest req, ServerResponse res) Modifier and TypeMethodDescriptionstatic <T> Handler
Handler.create
(Class<T> type, BiConsumer<T, ServerResponse> handler) Create a handler that consumes type request entity andServerResponse
. -
Uses of ServerResponse in io.helidon.webserver.http.spi
Modifier and TypeMethodDescriptionSinkProviderContext.serverResponse()
Obtains the server response associated with this context.Modifier and TypeMethodDescriptionSinkProvider.create
(ServerResponse response, BiConsumer<Object, MediaType> eventConsumer, Runnable closeRunnable) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ServerResponse in io.helidon.webserver.observe.metrics
Modifier and TypeMethodDescriptionvoid
PostRequestMetricsSupport.runTasks
(ServerRequest request, ServerResponse response, Throwable throwable) Run the post-processing tasks.Modifier and TypeMethodDescriptionstatic void
PostRequestMetricsSupport.recordPostProcessingWork
(ServerRequest request, BiConsumer<ServerResponse, Throwable> task) Records a post-processing task to be performed once the response has been sent to the client.void
PostRequestMetricsSupport.registerPostRequestWork
(BiConsumer<ServerResponse, Throwable> task) Records post-request processing to be performed once the server sends the response to the client. -
Uses of ServerResponse in io.helidon.webserver.security
Modifier and TypeMethodDescriptionboolean
SecurityHttpFeature.authenticate
(ServerRequest request, ServerResponse response, boolean requiredHint) boolean
SecurityHttpFeature.authorize
(ServerRequest request, ServerResponse response, String... roleHint) void
SecurityHandler.handle
(ServerRequest req, ServerResponse res) -
Uses of ServerResponse in io.helidon.webserver.sse
Modifier and TypeMethodDescriptionSseSinkProvider.create
(ServerResponse response, BiConsumer<Object, MediaType> eventConsumer, Runnable closeRunnable) Deprecated, for removal: This API element is subject to removal in a future version.replaced bySseSinkProvider.create(SinkProviderContext)
SinkProvider.create(SinkProviderContext)