mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
8 lines
248 B
Text
8 lines
248 B
Text
![]() |
static_file_path = File.join(Dir.tmpdir, "puma-static.txt")
|
||
|
File.write(static_file_path, "Hello World" * 100_000)
|
||
|
|
||
|
run lambda { |env|
|
||
|
f = File.open(static_file_path)
|
||
|
[200, {"Content-Type" => "text/plain", "Content-Length" => f.size.to_s}, f]
|
||
|
}
|