Skip to content

Enumeration

RedirectType

Specifies the type of redirect that the client should receive.
enum RedirectType

Topics

Enumeration Cases

  • RedirectType.normal
    Forces the redirect to come with a GET, regardless of req method. 303 see other
  • RedirectType.permanent
    A cacheable redirect. Not all user-agents preserve request method and body, so this should only be used for GET or HEAD requests 301 permanent
  • RedirectType.temporary
    Maintains original request method, ie: PUT will call PUT on redirect. 307 Temporary

Instance Properties

  • status
    Associated HTTPStatus for this redirect type.

Relationships

Conforms To

  • Swift.Equatable
  • Swift.Hashable