Comments (8)
One thing about HTTPUrlConnection made it not very newbie-friendly was the implementation with AsycnTask. As @ernstsson just said:
Anything providing a synchronous interface is easily called from an Agera Function
So it should be no harder than implementing the Retrofit or Volley, and since Retrofit and Volley does have those interface, you can easily integrate them, no? For some projects it would also be awesome to go fully native anyway.
That being said, old benchmark said that Retrofit was performing better than HTTPUrlConnection, as well as having that auto-caching mechanism. I would really like to see how the Agera with HTTPUrlConnection perform, but I would not bet too much on them.
So yeah, Google project using Google component. Weird, eh?
from agera.
As of 4.4, HttpUrlConnection on Android uses OkHttp under the hood anyway. I'd be interested to see if any benchmarks showing Retrofit as faster than HttpUrlConnection still hold true.
https://twitter.com/jakewharton/status/482563299511250944
https://android.googlesource.com/platform/external/okhttp/+/master
from agera.
The extensions are more to be considered as fully functional sample extension libraries at this point. I can definitely see extensions of the kind you're referring to (although there is no immediate need for these specific ones by our own projects at the moment). Anything providing a synchronous interface is easily called from an Agera Function (or even a Supplier in some cases).
HTTPUrlConnection (as well as SQLiteDatabase) makes for a good sample extension, since it is part of the platform and no additional dependencies are needed.
from agera.
maybe there are some not released extensions addressing this point?
from agera.
how to send a post request with parameter ? i think the net module is too young
from agera.
Are you referring to URL parameters? The URL in the request is a simple String
. You can add parameters either though direct string concatenation, or using Android classes like Uri
to create the String
.
Still, an interesting idea, letting the actual HttpRequest
compiler add parameters directly.
from agera.
i know how to achieved it, but as this issue , i think okhttp or retrofit is good enough
from agera.
@ernstsson it has so many final and private class !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
from agera.
Related Issues (20)
- Compilation problems HOT 1
- Crash when trying to remove not added updatable HOT 1
- Add the 1.2.0 release to the GitHub releases screen HOT 1
- Exception when Response is Empty HOT 4
- [Question] Usages of non main thread to register an Updatable to a BaseObservable? HOT 5
- Wish to support Kotlin language.
- crash bug HOT 3
- About IdentityMultimap query. HOT 3
- Is this library dead? HOT 2
- [question] Push Event on a high speed frequency, Pull Data will too busy to attend to all HOT 2
- Query HOT 3
- [Query]: About switch work-thread HOT 10
- Agera 是否支持线程并发再合并? HOT 1
- #44
- (gradle4.4.1, agera1.4.0) when I run proguard, I got these warnings:
- Could not find dependency "com.google.android.agera:agera:1.4.0" HOT 6
- Sample doesn't build, is this project dead? HOT 7
- Androidx支持
- Deploy the last artifact outside of jcenter HOT 1
- Security Policy violation Binary Artifacts HOT 41
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agera.