Skip to content

Can't read headers anymore #143

Closed
Closed
@Burgov

Description

@Burgov

Before, I was able to read the response headers:

            task.on('complete', (result: any) => {
                let headers = new HttpHeaders();

                const iterator = result.response.getHeaders().entrySet().iterator();
                while (iterator.hasNext()) {
                    const header = iterator.next();
                    headers = headers.append(header.getKey, header.getValue());
                }

                // ...

            });           

However, that doesn't work anymore since #134, because the response object is no longer exposes (not on 'completed', not on 'responded')

Metadata

Metadata

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