Skip to content

get header in GET request with a specific name #1606

@mmor93

Description

@mmor93

Summary

Hello
i am using axios for a get request and in the response's header there is a key like this:
x-pagination-total-count

i tried to get the value of this key by 'result.headers.x-pagination-total-count' and the result is undefined for this line of code.
how should i get this header?

Context

  • axios version: e.g.: v0.16.0
  • Environment: e.g.: node v6.9.4, chrome 54, windows 7

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