HTTP::LogHandler

class HTTP::LogHandler

Overview

A handler that logs the request method, resource, status code, and the time used to execute the next handler, to the given IO.

Included Modules

Defined in:

http/server/handlers/log_handler.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(io : IO = STDOUT)Source

Initializes this handler to log to the given IO.

Instance Method Detail

def call(context)Source

© 2012–2017 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.22.0/HTTP/LogHandler.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部