๐Ÿ‘ a fluffy Gleam web server
23

Configure Feed

Select the types of activity you want to include in your feed.

fix formatting

vshakitskiy (May 27, 2026, 5:15 PM +0300) e738a14e ceaf42b3

+12 -3
+4 -1
src/ewe/internal/http1/handler.gleam
··· 295 295 296 296 /// Can the body be encoded to gzip? 297 297 /// 298 - fn can_encode_gzip(request: Request(Connection), response: Response(_)) -> Bool { 298 + fn can_encode_gzip( 299 + request: Request(Connection), 300 + response: Response(_), 301 + ) -> Bool { 299 302 let accept_encoding = 300 303 request.get_header(request, "accept-encoding") 301 304 |> result.map(string.contains(_, "gzip"))
+4 -1
test/client/http.gleam
··· 23 23 } 24 24 } 25 25 26 - fn do_parse(lines: String, body: String) -> Result(Response(String), ParseError) { 26 + fn do_parse( 27 + lines: String, 28 + body: String, 29 + ) -> Result(Response(String), ParseError) { 27 30 case string.split(lines, "\r\n") { 28 31 [status, ..headers] -> { 29 32 use status <- result.try(parse_status(status))
+4 -1
test/h1spec_test.gleam
··· 25 25 resp 26 26 } 27 27 28 - pub fn expect_status(req: String, status: List(#(Int, Int))) -> Response(String) { 28 + pub fn expect_status( 29 + req: String, 30 + status: List(#(Int, Int)), 31 + ) -> Response(String) { 29 32 let socket_address = server.start(server.echoer()) 30 33 use socket <- client.with_socket(socket_address.port, active: False) 31 34