Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set headers for Requests #88

Closed
richard-keller opened this issue Oct 18, 2018 · 1 comment
Closed

Ability to set headers for Requests #88

richard-keller opened this issue Oct 18, 2018 · 1 comment
Assignees
Labels
Projects
Milestone

Comments

@richard-keller
Copy link

When using tus-php in client mode, there is no way to set headers using middleware. It appears that it's only possible to set headers in server mode.

@richard-keller richard-keller changed the title Ability to set headers on Requests Ability to set headers for Requests Oct 18, 2018
@ankitpokhrel ankitpokhrel added this to To Do in Kanban Oct 19, 2018
@ankitpokhrel ankitpokhrel added this to the 0.1.0 milestone Oct 20, 2018
@ankitpokhrel ankitpokhrel moved this from To Do to In progress in Kanban Oct 21, 2018
@ankitpokhrel
Copy link
Owner

Fixed in #90. Guzzle options can be passed via constructor.

$tusClient = new TusClient('http://tus.server', [
    'connect_timeout' => 3.14,
    'allow_redirects' => false,
    'headers' => [
        'User-Agent' => 'testing/1.0',
        'Accept' => 'application/json',
    ],
]);

Kanban automation moved this from In progress to Done Oct 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Kanban
  
Done
Development

No branches or pull requests

3 participants