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

Make ftl call automatically work with HTTP ingress endpoints #935

Open
alecthomas opened this issue Feb 14, 2024 · 0 comments
Open

Make ftl call automatically work with HTTP ingress endpoints #935

alecthomas opened this issue Feb 14, 2024 · 0 comments

Comments

@alecthomas
Copy link
Collaborator

alecthomas commented Feb 14, 2024

HTTP ingress verbs have the signature verb(builtin.HttpRequest<T>) builtin.HttpResponse<T, E>, which makes them quite irritating to call with ftl call. ftl call could either automatically detect these verbs and generate the wrapping HttpRequest, or allow curl-like flags to be defined which would perform this wrapping if used.

eg.

ftl call --POST foo '{...}'

Would automatically create the HttpRequest envelope {method: "POST", body: {...}}.

@github-actions github-actions bot added the triage Issue needs triaging label Feb 14, 2024
@alecthomas alecthomas removed the triage Issue needs triaging label Mar 4, 2024
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

No branches or pull requests

1 participant