We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BytesBuilder
BytesTree
1 parent 7be642c commit e0a4645Copy full SHA for e0a4645
README.md
@@ -8,12 +8,12 @@ Types and functions for HTTP clients and servers!
8
import gleam/http/elli
9
import gleam/http/response.{type Response}
10
import gleam/http/request.{type Request}
11
-import gleam/bytes_builder.{type BytesBuilder}
+import gleam/bytes_tree.{type BytesTree}
12
13
// Define a HTTP service
14
//
15
-pub fn my_service(_request: Request(t)) -> Response(BytesBuilder) {
16
- let body = bytes_builder.from_string("Hello, world!")
+pub fn my_service(_request: Request(t)) -> Response(BytesTree) {
+ let body = bytes_tree.from_string("Hello, world!")
17
18
response.new(200)
19
|> response.prepend_header("made-with", "Gleam")
0 commit comments