Closed feifeipan closed 3 years ago
const cookie = res._getHeaders()['set-cookie'];
It works for me
As response.getHeaders() is part of the spec, the mock should implement it instead of requiring users to adapt their valid implementation. I will submit today a pull request to add that missing method.
Hi @sergioregueira, that would be great.
response missing getHeaders() api, only support getHeader().