Skip to content

Follow redirect #209

Open
Open
@Eomm

Description

@Eomm

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

When a response has 301/302 status code, the inject should follow the redirects

Motivation

Ref fastify/help#664

Example

const response = await app.inject({
      url: '/asd',
      method: 'GET',
      followRedirect: true // default max 1 redirect
      // OR
      followRedirect: 10 // follow max 10 redirect
    });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions