Skip to content

Response headers are unavailable outside the WebApiContext #6

Open
@fgm

Description

@fgm

Since $response has been set to private and $headers is currently only used for request headers, contexts inheriting WebApiContext have no way to access the response headers.

Suggested change:

  • either mark $response as protected instead of private
  • or add $this->headers = $this->response->getHeaders(); at the end of sendRequest(), making headers usable for both request and response
  • or provide separate properties+accessors for request and response headers.

Metadata

Metadata

Assignees

No one assigned

    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