mirror of https://github.com/fafhrd91/actix-web
Change closure register name
This commit is contained in:
parent
5f825a96f1
commit
b78dd3a0e1
|
@ -126,9 +126,9 @@ impl Logger {
|
|||
self
|
||||
}
|
||||
|
||||
/// Register a closure to be run on the logger.
|
||||
/// Register a closure to be run on the request output of the logger.
|
||||
/// Note: output from closure will be present at end of logger output. Multiple closure will be ran in the order they are registed.
|
||||
pub fn register_closure(
|
||||
pub fn register_request_closure(
|
||||
mut self,
|
||||
closure: fn(req: &ServiceRequest) -> String,
|
||||
) -> Self {
|
||||
|
|
Loading…
Reference in New Issue