Closed
Description
opened on Dec 20, 2023
Bug Description
ConnectOptions
interface doesn't include an origin
field that's required for the HTTP CONNECT.
Furthermore, it appears that the agent.connect({})
currently fails to execute without the origin
field.
Reproducible By
const agent = new Agent();
agent.connect({
origin: "https://example.com",
path: "/robots.txt"
});
This gives a TypeScript error for unknown "origin" field.
Expected Behavior
Origin is accepted.
Environment
Any
Activity