1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

update guide

This commit is contained in:
Nikolay Kim
2017-12-04 20:38:38 -08:00
parent fd6b243cd6
commit 3c9b6ea619
3 changed files with 37 additions and 8 deletions

View File

@ -373,6 +373,7 @@ impl HttpResponseBuilder {
self
}
/// Calls provided closure with builder reference if value is true.
pub fn if_true<F>(&mut self, value: bool, f: F) -> &mut Self
where F: Fn(&mut HttpResponseBuilder) + 'static
{