lib/async/http/protocol/http1/server.rb in async-http-0.45.9 vs lib/async/http/protocol/http1/server.rb in async-http-0.46.0
- old
+ new
@@ -51,9 +51,14 @@
end
# Server loop.
def each(task: Task.current)
while request = next_request
+ Async.logger.debug(self) do |buffer|
+ buffer.puts "Incoming request: #{request.authority} #{request.method} #{request.path} #{request.version}"
+ buffer.puts "Incoming headers: #{request.headers}"
+ end
+
response = yield(request, self)
return if @stream.nil? or @stream.closed?
if response