Skip to content

Any way to get the headers from the response in an interceptor? #297

Open
@webera1979

Description

@webera1979

Hello,

is there any way to retrieve the headers from an response in the interceptor configuration?
I cannot find it, but I think I am missing something. Thanks, Andreas

const options = {
        interceptors: {
            request: async ({ options } : any ) => {


                return options
            },
            response: async ({ response } : any ) => {

                return response
            }
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions