pub struct Redirect { /* private fields */ }
Available on crate feature
redirect
only.Implementations§
source§impl Redirect
impl Redirect
pub fn post_redirect() -> Builder
Available on crate feature
post-redirect
only.source§impl Redirect
impl Redirect
pub fn status(&self) -> &StatusCode
pub fn location(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&Mime>
pub fn moved_permanently() -> Builder
pub fn permanent_redirect() -> Builder
pub fn found() -> Builder
pub fn see_other() -> Builder
pub fn temporary_redirect() -> Builder
pub fn not_modified() -> Builder
pub fn multiple_choice() -> Builder
Trait Implementations§
source§impl Responder for Redirect
impl Responder for Redirect
source§fn respond_with_builder(
self,
builder: ResponseBuilder,
_ctx: &HttpContext
) -> ResponseBuilder
fn respond_with_builder( self, builder: ResponseBuilder, _ctx: &HttpContext ) -> ResponseBuilder
Consume self into a builder Read more