java.lang.Object
net.i2p.i2ptunnel.I2PTunnelRunner.BodyProgress
Enclosing class:
I2PTunnelRunner

protected static final class I2PTunnelRunner.BodyProgressextends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final long
    Entity-body bytes already written to the browser.
    final boolean
    Whether a Content-Length body can be safely spliced (not gzip, etc.).
    final long
    Original Content-Length, or -1 if unknown.
    final boolean
    Whether the first response headers were emitted to the browser.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BodyProgress(long bodyReceived, long contentLength, boolean headerWritten, boolean canRangeResume)
    Capture a snapshot of body-delivery progress.
  • Method Summary

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • bodyReceived

      public final long bodyReceived
      Entity-body bytes already written to the browser.
    • contentLength

      public final long contentLength
      Original Content-Length, or -1 if unknown.
    • headerWritten

      public final boolean headerWritten
      Whether the first response headers were emitted to the browser.
    • canRangeResume

      public final boolean canRangeResume
      Whether a Content-Length body can be safely spliced (not gzip, etc.).
  • Constructor Details

    • BodyProgress

      public BodyProgress(long bodyReceived, long contentLength, boolean headerWritten, boolean canRangeResume)
      Capture a snapshot of body-delivery progress.
      Parameters:
      bodyReceived - entity-body bytes already written to the browser
      contentLength - original Content-Length, or -1 if unknown
      headerWritten - whether the first response headers already went to the browser
      canRangeResume - whether a Content-Length body can be safely spliced (not gzip, etc.)