proxy.plugin.modify_request_header module#
proxy.py#
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging.
- copyright
2013-present by Abhinav Singh and contributors.
- license
BSD, see LICENSE for more details.
- class proxy.plugin.modify_request_header.ModifyRequestHeaderPlugin(uid: str, flags: argparse.Namespace, client: proxy.http.connection.HttpClientConnection, event_queue: proxy.core.event.queue.EventQueue, upstream_conn_pool: Optional[UpstreamConnectionPool] = None)[source]#
Bases:
proxy.http.proxy.plugin.HttpProxyBasePlugin
Modify request header before sending to upstream server.
- _abc_impl = <_abc._abc_data object>#
- handle_client_request(request: proxy.http.parser.parser.HttpParser) Optional[proxy.http.parser.parser.HttpParser] [source]#
NOTE: This is for HTTPS request headers modification when under TLS interception.
For HTTPS requests, modification of request under TLS interception WILL NOT WORK through before_upstream_connection.