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
Bug Description
ConnectOptionsinterface doesn't include anoriginfield that's required for the HTTP CONNECT.Furthermore, it appears that the
agent.connect({})currently fails to execute without theoriginfield.Reproducible By
This gives a TypeScript error for unknown "origin" field.
Expected Behavior
Origin is accepted.
Environment
Any