We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This module:
type EchoRequest struct { Name string `json:"name"` } type EchoResponse struct { Message string `json:"message"` } //ftl:verb //ftl:ingress http GET /idv/echo func Echo(ctx context.Context, req builtin.HttpRequest[EchoRequest]) (builtin.HttpResponse[EchoResponse], error) { return builtin.HttpResponse[EchoResponse]{ Status: 200, Body: EchoResponse{Message: fmt.Sprintf("Hello, %s!", req.Body.Name)}, }, nil }
returns the error:
curl -i http://localhost:8892/ingress/idv/echo\?name\=wes HTTP/1.1 400 Bad Request Content-Type: text/plain; charset=utf-8 Vary: Origin X-Content-Type-Options: nosniff Date: Tue, 30 Jan 2024 20:46:56 GMT Content-Length: 94 builtin.HttpRequest<idv.EchoRequest>.body.name has wrong type, expected String found []string
The text was updated successfully, but these errors were encountered:
feat: add support for HttpRequest[[]byte] (#860)
485e256
Fixes #849 Fixes #850 Fixes #856
wesbillman
Successfully merging a pull request may close this issue.
This module:
returns the error:
The text was updated successfully, but these errors were encountered: