Skip to content

[Question] Change headers of a deferred_response #278

Open
@azertyalex

Description

@azertyalex

I am implementing a deferred_response. After reading the docs @ https://github.com/etr/libhttpserver/blob/master/README.md?plain=1#L632

It looks to me that I can not change headers or content-type after my deferred_response has been returned in the render function, I modify the object but I see no changes. It looks like a need more of a promise instead of a deferred response?

Is it in any way possible to set headers after render has been returned?

Metadata

Metadata

Assignees

Labels

bugConfirmed bugs or reports that are very likely to be bugs.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions