Skip to content

stream webdav downloads using http client - #18653

Merged
LukasReschke merged 3 commits into
masterfrom
dav-stream-guzzle
Sep 11, 2015
Merged

LukasReschke merged 3 commits into
masterfrom
dav-stream-guzzle

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

Extends the http client to allow streamed responses and uses that for dav downloads.

Replaces #10620

cc @PVince81 @LukasReschke @MorrisJobke

@ghost

ghost commented Aug 29, 2015

Copy link
Copy Markdown

🚀 Test PASSed.🚀
chuck

@RobinMcCorkell

Copy link
Copy Markdown
Contributor

Why use Guzzle instead of the Sabre DAV Client that is already used in that class? It supports streams as well, with nearly the same interface:

$request = new \Sabre\HTTP\Request('GET', $this->createBaseUri() . $this->encodePath($path));

$response = $this->client->send($request);

return $response->getBodyAsStream();

Also, you missed the cURL stuff in uploadFile().

@MorrisJobke MorrisJobke added this to the 8.2-current milestone Aug 29, 2015
@icewind1991

Copy link
Copy Markdown
Contributor Author

From what I can tell that api doesn't actually stream the result, just returns the string result as a stream

cc @evert

@evert

evert commented Aug 30, 2015

Copy link
Copy Markdown

This is true.. It's been a feature request for a while: sabre-io/http#15

@RobinMcCorkell

Copy link
Copy Markdown
Contributor

@evert As @DeepDiver1975 sometimes says... FIXIT! 😆

@evert

evert commented Aug 30, 2015

Copy link
Copy Markdown

I don't know how!

@icewind1991

Copy link
Copy Markdown
Contributor Author

@Xenopathic @PVince81 @DeepDiver1975 can this be merged?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$isStream ? Is it a boolean or can it be an actual stream ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A boolean, to tell the Response class if it should treat the response as a stream

@PVince81

PVince81 commented Sep 1, 2015

Copy link
Copy Markdown
Contributor

Seems to work with federated shares 👍

Would be good to find out whether it works with valid SSL certs though. @LukasReschke what do you think ?

@RobinMcCorkell

Copy link
Copy Markdown
Contributor

Still missing the other cURL stuff in uploadFile()

@RobinMcCorkell

Copy link
Copy Markdown
Contributor

👍

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@RobinMcCorkell

Copy link
Copy Markdown
Contributor

👍

@icewind1991

Copy link
Copy Markdown
Contributor Author

@PVince81 can you re-review with the latest changes

@icewind1991

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 @MorrisJobke can you review this?

@LukasReschke

Copy link
Copy Markdown
Contributor

👍

LukasReschke added a commit that referenced this pull request Sep 11, 2015
stream webdav downloads using http client
@LukasReschke
LukasReschke merged commit 1924dd3 into master Sep 11, 2015
@LukasReschke
LukasReschke deleted the dav-stream-guzzle branch September 11, 2015 15:10
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants