Class I2PTunnelHTTPClientRunner

  • All Implemented Interfaces:
    Runnable, I2PSocket.SocketErrorListener

    public class I2PTunnelHTTPClientRunner
    extends I2PTunnelRunner
    Override the response with a stream filtering the HTTP headers received. Specifically, this makes sure we get Connection: close, so the browser knows they really shouldn't try to use persistent connections. The HTTP server *should* already be setting this, since the HTTP headers sent by the browser specify Connection: close, and the server should echo it. However, both broken and malicious servers could ignore that, potentially confusing the user. Warning - not maintained as a stable API for external use.