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

StdClient onData #67

Closed
benmerckx opened this issue Dec 18, 2016 · 6 comments
Closed

StdClient onData #67

benmerckx opened this issue Dec 18, 2016 · 6 comments

Comments

@benmerckx
Copy link
Member

I want to use a Client to download some larger files. Seems StdClient uses Http.onData, so as far as I can tell waits for everything to be downloaded and converted to String before piping to source. Could haxe.Http.customRequest be used to create a proper body Source?

@kevinresol
Copy link
Member

I think somehow we need to either abandon StdClient, or provide a custom override of haxe.Http.
Because the std Http class is quite limited. For one it's request() method only supports GET and POST.

@kevinresol
Copy link
Member

kevinresol commented Mar 7, 2017

Actually, I think things would be much easier if we provide StdClient over the Socket class rather than the Http class. Because we have all the http stuff ready anyway, so we actually don't need the api provided by Http (setHeader, setPostData, etc)

@kevinresol
Copy link
Member

kevinresol commented Mar 7, 2017

@kevinresol
Copy link
Member

Let's say goodbye to StdClient

@back2dos
Copy link
Member

back2dos commented May 8, 2017

\o/

@benmerckx
Copy link
Member Author

Bye!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants