lib/timber/events/http_server_request.rb in timber-2.1.0.rc5 vs lib/timber/events/http_server_request.rb in timber-2.1.0.rc6
- old
+ new
@@ -28,10 +28,10 @@
{body: body, headers: headers, host: host, method: method, path: path, port: port,
query_string: query_string, request_id: request_id, scheme: scheme}
end
alias to_h to_hash
- # Builds a hash representation of containing simply objects, suitable for serialization.
+ # Builds a hash representation containing simple objects, suitable for serialization (JSON).
def as_json(_options = {})
{:http_server_request => to_hash}
end
def message
\ No newline at end of file