Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect related changes - add optional hooks #504

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

RomanManz
Copy link

Commit b9ddce5 adding return value to connectReqHandler

  • allows the connectReqHandler to return an error in order to interrupt requests when necessary
    Commit fff8ef1 adding optional connectRespHandler
  • introduces optional support for a connectResponseHandler
  • allows to interrupt a connection - our use case was to check for specific headers returned from the chained proxy
    Commit f0e6940 calling Hijack in handleHttps if defined
  • adds hijack support to the connectMitm and connectHTTPMitm actions
  • our use case was to inject additional headers in the connect responses when needed

@elazarl
Copy link
Owner

elazarl commented Apr 6, 2024

The use case is, you have a CA that singed another certificate once, and you want to use this certificate to sign websites, right?

Can you please add unit tests for the certificate functions?

@ErikPelli
Copy link
Collaborator

What is the purpose of this Pull Request? Can you explain the problem that you are trying to solve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants