mirror of
https://github.com/actix/actix-web.git
synced 2025-03-28 13:55:28 +00:00
add doc ref
This commit is contained in:
parent
0dd27bd224
commit
a18bd5dac0
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,10 @@ impl<S> Router<S> {
|
|||
self.0.recognize(path).is_some()
|
||||
}
|
||||
|
||||
/// Build named resource path
|
||||
/// Build named resource path.
|
||||
///
|
||||
/// Check [`HttpRequest::url_for()`](../struct.HttpRequest.html#method.url_for)
|
||||
/// for detailed information.
|
||||
pub fn resource_path<U, I>(&self, name: &str, elements: U)
|
||||
-> Result<String, UrlGenerationError>
|
||||
where U: IntoIterator<Item=I>,
|
||||
|
|
Loading…
Reference in a new issue