Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i get response head #275

Open
gx191179173 opened this issue Apr 17, 2019 · 3 comments
Open

how can i get response head #275

gx191179173 opened this issue Apr 17, 2019 · 3 comments

Comments

@gx191179173
Copy link

No description provided.

@gx191179173
Copy link
Author

how can i get the response head

@qq292
Copy link

qq292 commented Aug 1, 2019

i don't know

@jan-stefan
Copy link

Hi @gx191179173, @qq292,

after quick reading through the souces: It should be

resp.getResponseHeader

Bit better example looks like this:
reqwest({ url: 'path/to/json' , type: 'json' , method: 'post' , error: function (err) { } , success: function (resp) { // resp.getResponseHeader // just print resp console.log(resp); } })

After console.log(resp) you will see in the output what's inside the response. Then you can simply select the data needed for your usecase.

Hope this helps :)
Happy Codin' !
~Jan-Stefan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants