generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for different content types (#835)
Basic support for different content-types on HTTP responses. This will need to be extended in the future, but is setup now to support `text/` types. This will definitely need more thought in the future. This allows us to return HTML content from an HTTP ingress ```go return builtin.HttpResponse[string]{ Status: 200, Headers: map[string][]string{"Content-Type": {"text/html; charset=utf-8"}}, Body: "<html><body><h1>HTML Page From FTL 🚀!</h1></body></html>", }, nil ``` ![Screenshot 2024-01-25 at 10 12 07 AM](https://github.com/TBD54566975/ftl/assets/51647/acb413f9-5be3-4c5c-868b-dda155512f44)
- Loading branch information
1 parent
c626426
commit ecbfab8
Showing
3 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters