Skip to content

Provide route params to worker when using http proxy #9840

Closed
@ejizba

Description

@ejizba

We'd like the host to pass the worker route param info when using http proxies. We have the url and could potentially parse it ourselves, but the user registers routes using ASP.NET route syntax since the host handles all the actual routing logic. It would be pretty complicated to parse ASP.NET route syntax (e.g. example/{name}) since it's different than typical Node.js route syntax (e.g. example/:name).

Theoretically this should be easy for the host to do for us since all the route info is in the url, not the request body itself. The host could either send the route param over rpc (we still get an rpc request per invocation) or tacked on to the request sent through the proxy as a header or something. Either way would work for us.

Discussed offline here (Internal-only thread)

Metadata

Metadata

Assignees

Labels

area: httpItems related to experience improvements for HTTP triggers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions