Skip to content

Commit

Permalink
replace BytesBuilder to BytesTree
Browse files Browse the repository at this point in the history
`BytesBuilder` removed v0.48.0
replace `BytesTree`
  • Loading branch information
yellowsman authored and lpil committed Dec 30, 2024
1 parent 7be642c commit e0a4645
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Types and functions for HTTP clients and servers!
import gleam/http/elli
import gleam/http/response.{type Response}
import gleam/http/request.{type Request}
import gleam/bytes_builder.{type BytesBuilder}
import gleam/bytes_tree.{type BytesTree}
// Define a HTTP service
//
pub fn my_service(_request: Request(t)) -> Response(BytesBuilder) {
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!")
response.new(200)
|> response.prepend_header("made-with", "Gleam")
Expand Down

0 comments on commit e0a4645

Please sign in to comment.