Redirect class

Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.

Constructors

Redirect({String? hostName, String? httpRedirectCode, Protocol? protocol, String? replaceKeyPrefixWith, String? replaceKeyWith})
Redirect.fromXml(XmlElement elem)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hostName String?
The host name to use in the redirect request.
final
httpRedirectCode String?
The HTTP redirect code to use on the response. Not required if one of the siblings is present.
final
protocol Protocol?
Protocol to use when redirecting requests. The default is the protocol that is used in the original request.
final
replaceKeyPrefixWith String?
The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with KeyPrefixEquals set to docs/ and in the Redirect set ReplaceKeyPrefixWith to /documents. Not required if one of the siblings is present. Can be present only if ReplaceKeyWith is not provided.
final
replaceKeyWith String?
The specific object key to use in the redirect request. For example, redirect request to error.html. Not required if one of the siblings is present. Can be present only if ReplaceKeyPrefixWith is not provided.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toXml(String elemName, {List<XmlAttribute>? attributes}) → XmlElement

Operators

operator ==(Object other) bool
The equality operator.
inherited