Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WithProxyOptions

Hierarchy

  • IProxyOptions
    • WithProxyOptions

Index

Properties

Optional dirPath

dirPath: string

Optional entryUrl

entryUrl: string

Optional forceChunkedRequest

forceChunkedRequest: boolean
  • Setting this option will remove the content-length from the proxy to server request, forcing chunked encoding

Optional forceSNI

forceSNI: boolean
  • force use of SNI by the client. Allow node-http-mitm-proxy to handle all HTTPS requests with a single internal server.

Optional host

host: string

host - The hostname or local address to listen on.

Optional httpAgent

httpAgent: Agent
  • The http.Agent to use when making http requests. Useful for chaining proxys. (default: internal Agent)

Optional httpsAgent

httpsAgent: Agent
  • The https.Agent to use when making https requests. Useful for chaining proxys. (default: internal Agent)

Optional httpsPort

httpsPort: number
  • The port or named socket for https server to listen on. (forceSNI must be enabled)

Optional keepAlive

keepAlive: boolean
  • enable HTTP persistent connection

Optional port

port: number

Optional sslCaDir

sslCaDir: string
  • Path to the certificates cache directory (default: process.cwd() + '/.http-mitm-proxy')

Optional throttling

throttling: { flushIntervalMs?: number; mbps: number; retryIntervalMs?: number }

Type declaration

  • Optional flushIntervalMs?: number
  • mbps: number
  • Optional retryIntervalMs?: number

Optional timeout

timeout: number
  • The number of milliseconds of inactivity before a socket is presumed to have timed out. Defaults to no timeout.

Generated using TypeDoc