-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from dinkelspiel/update-mist
Raise higher bound for mist dependency to 5.0.0
- Loading branch information
Showing
6 changed files
with
27 additions
and
28 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import cors_builder as cors | ||
import gleam/bytes_builder | ||
import gleam/bytes_tree | ||
import gleam/http/request.{type Request} | ||
import gleam/http/response.{type Response} | ||
import mist.{type Connection, type ResponseData} | ||
|
||
pub fn run(req: Request(Connection)) -> Response(ResponseData) { | ||
use _req <- cors.mist_middleware(req, cors.new()) | ||
let empty = mist.Bytes(bytes_builder.from_string("OK")) | ||
let empty = mist.Bytes(bytes_tree.from_string("OK")) | ||
response.new(200) | ||
|> response.set_body(empty) | ||
} |
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