Skip to content

Commit c6b97da

Browse files
committed
Show how to use custom protocol.
1 parent f077829 commit c6b97da

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/hello/falcon.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
include Falcon::Environment::Rack
1414

1515
scheme "http"
16-
protocol {Async::HTTP::Protocol::HTTP}
16+
# protocol {Async::HTTP::Protocol::HTTP}
17+
18+
# protocol {Async::HTTP::Protocol::HTTP1.new(
19+
# persistent: false,
20+
# maximum_line_size: 1024,
21+
# )}
1722

1823
# endpoint do
1924
# Async::HTTP::Endpoint.for(scheme, "localhost", port: 9292, protocol: protocol)

0 commit comments

Comments
 (0)