Skip to content

Setting headers? #5

@kjdgac

Description

@kjdgac

Hi, Roman,

I was thrilled to find your PHP-REST-Client package, but wondering if there was a method for setting custom headers? For example, I need to make a request to an API that wants a token to verify authentication. Can "x-access-token" or any other header value be set before requests are fired off?

Update: Nevermind. I did what I SHOULD have done and looked through your classes. I'm seeing the $headers option in newRequest().

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