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

Unify HttpClient and XMLHttpRequest interfaces #2677

Closed
sethladd opened this issue Apr 21, 2012 · 9 comments
Closed

Unify HttpClient and XMLHttpRequest interfaces #2677

sethladd opened this issue Apr 21, 2012 · 9 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-not-planned Closed as we don't intend to take action on the reported issue type-enhancement A request for a change that isn't a bug

Comments

@sethladd
Copy link
Contributor

Early feedback from hackathon: unclear what code runs on client or server.

To start, we can create a high level interface for both HttpClient and XMLHttpRequest so that there is one way to connect to web servers for the most general cases.

@DartBot
Copy link

DartBot commented Apr 21, 2012

This comment was originally written by [email protected]


I was trying to build a library that would need to make some GET and POST requests to a API server, since I was a Javascript developer the first thing I tried was to use the dart:dom/dart:html XMLHttpRequest to make it. When I ran my code I got this error "Do not know how to load 'dart:dom'". Then I asked for this on the IRC channel and Seth Ladd said I should use dart:io's HttpClient for server applications because dart:dom/dart:html are only for web client applications.

It will be better if there was a bit more clarification about which libraries run on server and which run on the client, or merge them into a single library.

@DartBot
Copy link

DartBot commented Apr 22, 2012

This comment was originally written by @seaneagan


I need this! I am writing a date/time library with i18n support which I want to make available on client and server. To do this, I need to make http requests for the cldr/i18n data for the user's specific locale, but it's currently impossible to write code for this that works on both the client and server.

This could probably be marked as blocking issue #1324 which is about removing the overlap between dart:io and dart:html as a whole.

@sgjesse
Copy link
Contributor

sgjesse commented Jun 8, 2012

Added this to the Later milestone.

@sethladd
Copy link
Contributor Author

See also issue #4377

@jbdeboer
Copy link

Issue #10750 has been merged into this issue.

@sgjesse
Copy link
Contributor

sgjesse commented Jun 20, 2013

This will most likely be handled by an additional library in a package.


Removed Area-IO label.
Added Area-Pkg label.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@sethladd
Copy link
Contributor Author

This may happen, but no active work.


Added NotPlanned label.

@DartBot
Copy link

DartBot commented Jul 17, 2014

This comment was originally written by @seaneagan


note that issue #20068 pretty nicely solves the underlying use case though

@sethladd sethladd added Type-Enhancement area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-not-planned Closed as we don't intend to take action on the reported issue labels Jul 17, 2014
@sethladd sethladd added this to the Oldschool-Later milestone Jul 17, 2014
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-not-planned Closed as we don't intend to take action on the reported issue type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants