📝 Fix link
This commit is contained in:
parent
64ec767a5f
commit
d1bfb2a799
2 changed files with 3 additions and 3 deletions
|
|
@ -87,7 +87,7 @@
|
||||||
//! static_locales!(LOCALES_SAMPLE in "path/to/locale");
|
//! static_locales!(LOCALES_SAMPLE in "path/to/locale");
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! Usa el componente [L10n](crate::core::component::l10n::L10n) para incluir textos y contenidos
|
//! Usa el componente [L10n](crate::core::component::L10n) para incluir textos y contenidos
|
||||||
//! opcionalmente traducibles según el contexto de renderizado.
|
//! opcionalmente traducibles según el contexto de renderizado.
|
||||||
|
|
||||||
use crate::{config, kv, trace, LazyStatic};
|
use crate::{config, kv, trace, LazyStatic};
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,8 @@ impl Redirect {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Temporary redirection. Status Code **307**. Method and body not changed. The web page is
|
/// Temporary redirection. Status Code **307**. Method and body not changed. The web page is
|
||||||
/// temporarily unavailable for unforeseen reasons. Better than [`found()`](found) when non-GET
|
/// temporarily unavailable for unforeseen reasons. Better than [`found()`](Self::found) when
|
||||||
/// operations are available on the site.
|
/// non-GET operations are available on the site.
|
||||||
pub fn temporary(redirect_to_url: &str) -> HttpResponse {
|
pub fn temporary(redirect_to_url: &str) -> HttpResponse {
|
||||||
HttpResponse::TemporaryRedirect()
|
HttpResponse::TemporaryRedirect()
|
||||||
.append_header(("Location", redirect_to_url))
|
.append_header(("Location", redirect_to_url))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue