tus / tus-java-client

The tus client for Java.
https://tus.io
MIT License
213 stars 88 forks source link

Can you consider allowing users to add connection headers. #2

Closed osiloke closed 8 years ago

osiloke commented 8 years ago

This will allow authorization headers. I know authorization is not part of the protocol, but the protocol documentation suggest that you should perform authorization via additional headers. The current api does not allow this.

Acconut commented 8 years ago

Sure, this should be a relatively easy fix. Do you speak about headers per client (TusClient#setHeaders), per upload (TusUpload#setHeaders) or both in your case? Since I see use cases for all situations, I guess we need both.

osiloke commented 8 years ago

so i think both cases are helpful at least for flexibility... TusUploader#setheader, TusClient#setHeader

Acconut commented 8 years ago

Currently sitting on implementing this feature. Expect it soon!

Acconut commented 8 years ago

The 0.3.0 release includes this feature.