Uses of Class
dev.relism.flash.models.Response
Packages that use Response
Package
Description
-
Uses of Response in dev.relism.flash.http1
Methods in dev.relism.flash.http1 with parameters of type ResponseModifier and TypeMethodDescriptionstatic voidHttp1ResponseWriter.writeResponse(OutputStream out, Response response, HttpMethod method, boolean keepAlive, boolean sendDate, ConnectionScratch scratch) Writesresponsetooutas a complete HTTP/1.1 message. -
Uses of Response in dev.relism.flash.http2.message
Methods in dev.relism.flash.http2.message with parameters of type ResponseModifier and TypeMethodDescriptionbooleanHttp2ResponseWriter.prepare(Response response, int streamId, boolean headRequest, boolean sendDate, boolean sendContentLength, boolean huffmanDynamicValues, boolean emitTableSizeUpdate, int maxFrameSize, long maxHeaderListSize, int availableFlowWindow) Prepares a non-streaming response.intHttp2ResponseWriter.startFlowControlled(Response response, int streamId, boolean headRequest, boolean sendDate, boolean sendContentLength, boolean huffmanDynamicValues, boolean emitTableSizeUpdate, int maxFrameSize, long maxHeaderListSize, int availableFlowWindow) Starts a response whose DATA may span multiple flow-control windows. -
Uses of Response in dev.relism.flash.http2.stream
Methods in dev.relism.flash.http2.stream that return Response -
Uses of Response in dev.relism.flash.models
Methods in dev.relism.flash.models that return ResponseModifier and TypeMethodDescriptionResponse.body(byte[] bytes) Response.chunked(InputStream is) Streaming response with unknown length; written withTransfer-Encoding: chunked.Response.header(byte[] preEncoded) Adds a pre-encoded, fully-rendered header line (e.g. a static"X-RateLimit-Limit: 100\r\n"byte array pre-built at boot time).Response.header(PreEncodedHeader preEncoded) Adds a header from aPreEncodedHeaderbuilt once (typically at boot).reused byte region (viaByteWriter.writeAscii(java.lang.String)) instead of building an intermediateStringand re-encoding it — zero allocation once the region has grown to this connection's high-water mark.Response.redirect(HttpStatus status, String url) Redirect with an explicit 3xx status.302 Found redirect.Response.reset(int statusCode, ContentType contentType) Repositions this instance for a new request/response cycle — clears the body, stream, status, content type, and every header recorded by the previous cycle.Sets the body from a handler return value.Response.status(int code) Sets the status code.Response.status(HttpStatus status) Sets the status from anHttpStatusconstant.Response.stream(InputStream is, long length) Streaming response with known length; written withContent-Length.Response.streaming(Consumer<ResponseStream> producer) Push-style streaming response with bounded blocking backpressure.Response.trailer(PreEncodedHeader trailer) Adds a pre-encoded structured trailer.Adds a trailer rendered after the response body on both HTTP versions.Response.type(byte[] ct) A content type encoded once, typically at boot: the array is kept, not copied, so it must not change.Response.type(ContentType ct) Methods in dev.relism.flash.models with parameters of type ResponseModifier and TypeMethodDescriptionstatic voidResponseSerializer.forEachCustomField(Response response, ResponseSerializer.FieldConsumer consumer) Enumerates structured custom fields only, excludingcontent-type.static voidResponseSerializer.forEachField(Response response, ResponseSerializer.FieldConsumer consumer) Enumeratesresponse's fields in a fixed order: non-emptyContent-Type, then structured custom fields in call order.static voidResponseSerializer.forEachTrailerField(Response response, ResponseSerializer.FieldConsumer consumer) Enumerates response trailers in declaration order.final Objectprotected abstract Objectabstract ObjectHandles an incoming request. -
Uses of Response in dev.relism.flash.routing
Methods in dev.relism.flash.routing with parameters of type Response