wcandillon / swagger-js-codegen

A Swagger Codegen for typescript, nodejs & angularjs
Apache License 2.0
693 stars 286 forks source link

need a way to access response headers #220

Closed adamabeshouse closed 6 years ago

adamabeshouse commented 6 years ago

In swagger-codegen, they have WithHttpInfo methods which return the response header as well as the body.

https://github.com/swagger-api/swagger-codegen/pull/4902

Currently there doesn't seem to be a way to do this in swagger-js-codegen, the request promises resolve with the response body automatically.

adamabeshouse commented 6 years ago

nevermind I think I misunderstood