Package com.mastfrog.acteur.annotations
Annotation Type Early
Annotate an Acteur with this, to have it run as soon as the headers are
received, disabling chunk aggregation. Use this if you, say, want to
redirect an HTTP POST request with a large upload, where you want to direct
the client to send it elsewhere without transferiring the request body
- Author:
- Tim Boudreau
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIf true, automatically send the 100-CONTINUE response after the chunk handler is installed.Class<? extends ChunkHandler>If set, the acteur chain will be paused after the acteur annotated with @Empty, and this chunk handler will be called with each chunk of content; you can call its resume() method when you're ready to continue preparing the response.
-
Element Details
-
value
Class<? extends ChunkHandler> valueIf set, the acteur chain will be paused after the acteur annotated with @Empty, and this chunk handler will be called with each chunk of content; you can call its resume() method when you're ready to continue preparing the response.- Returns:
- A handler
- Default:
- com.mastfrog.acteur.ChunkHandler.class
-
send100continue
boolean send100continueIf true, automatically send the 100-CONTINUE response after the chunk handler is installed.- Returns:
- Whether or not to send the header
- Default:
- false
-