Skip to content

Get all headers as associative array #29

@DavidePastore

Description

@DavidePastore

This seems like a bug or documentation is wrong. Documentation says headers should be an associative array.

// Get request headers as associative array
$headers = $app->request->headers;

However actual return value is instance of Slim\Http\Headers class which implements ArrayAccess. For me this is not the same thing.

Refer to codeguy/Slim/issues/888.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions