-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
Support CONNECT method #3862
Comments
You can use |
It doesn't work. Considering code import { Hono } from 'hono';
const app = new Hono();
app.on('CONNECT', '*', async (c) => {
console.log('HTTP CONNECT:', c.req.method, c.req.url);
});
export default {
port: 8080,
fetch: app.fetch,
}; Set |
Sorry, please try to rewrite to lower case |
same result |
Hmm |
Can you intercept request? (Use app.all) |
That's my first attempt. |
If so, I don't think it is possible to do that with Hono. |
That's why it's a feature request. |
Hi @ianzone I'm not so familiar with MITM proxy, but supporting the CONNECT method is out of Hono's score. Hono is built with just Web Standard API, but it does not support the CONNECT method. This is the reason. |
What is the feature you are proposing?
I'm trying to build an MITM proxy using Hono, but Hono misses the CONNECT method, which the MITM proxy requires.
The text was updated successfully, but these errors were encountered: