Annotation Type Early


@Retention(RUNTIME) @Target(TYPE) public @interface 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 Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If 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> value
      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.
      Returns:
      A handler
      Default:
      com.mastfrog.acteur.ChunkHandler.class
    • send100continue

      boolean send100continue
      If true, automatically send the 100-CONTINUE response after the chunk handler is installed.
      Returns:
      Whether or not to send the header
      Default:
      false