OkHttp
Dubbo
OkHttp | Dubbo | |
---|---|---|
49 | 3 | |
46,233 | 40,824 | |
0.3% | 0.4% | |
9.2 | 9.8 | |
4 days ago | 6 days ago | |
Kotlin | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
OkHttp
-
OkHttp: The HTTP Client That Will Blow Your Mind!
View the Project on GitHub
-
Unveiling Open Source Success: The Inspiring Story of OkHttp
OkHttp shines not only as a tool but also as a case study in sustainable open source practices. By combining consistent funding with a culture of open collaboration, Square has created an environment where rapid innovation meets robust quality assurance. With extensive documentation available on the official OkHttp website, developers worldwide can learn best practices and integrate OkHttp into their projects with ease. Furthermore, the thriving community around OkHttp has provided a rich repository of tutorials, performance benchmarks, and case studies. This collaborative approach not only accelerates problem-solving but also ensures that the tool evolves in tandem with emerging industry trends. As alternative funding models, including tokenized systems, gain traction in the open source arena, OkHttp continues to stand as a testament to the efficacy of conventional corporate-backed contributions.
-
Comprehensive Guide to OkHttp for Java and Kotlin
When building applications that communicate over the web, a reliable and efficient HTTP client is essential. OkHttp, one of the most popular HTTP clients for Java and Android development, stands out as a powerful tool for handling network operations.
-
Tutorial: Build a Java SDK based on OpenAPI Spec
Your SDK will need a reliable HTTP client to interact with APIs. For Java, consider HttpClient from the standard library or popular libraries like OkHttp if you need more flexibility.
-
OpenSSL bug exposed up to 255 bytes of server heap and existed since 2011
> Issue summary: Calling the OpenSSL API function SSL_select_next_proto with an empty supported client protocols buffer may cause a crash or memory contents to be sent to the peer.
BoringSSL fix: https://boringssl.googlesource.com/boringssl/+/c1d9ac02514a1...
The heap leak was independently observed in 2014 in the Android okhttp library: https://github.com/square/okhttp/issues/437#issuecomment-358...
-
Consuming and Testing third party API's using Spring Webclient
We will use Square’s Mock Webserver to spin up a mock server which we can use to simulate real api's request to the get coffee endpoint.
-
Chat with any GPT right through your favorite text editor
OkHttp Documentation
-
Is there a server simulator available for testing API endpoints with low code or no code configuration?
mockwebserver -> https://github.com/square/okhttp/tree/master/mockwebserver
-
Do you use OkHttp with custom maxRequestsPerHost or maxIdleConnections?
I searched in the OkHttp GitHub project for an advice on which values may be suitable for Android apps nowadays but found no answers (only this old issue which does not help). Since we share a single OkHttp client Singleton for all our retrofit APIs and even Coil, I wonder if the default 5 maxRequestsPerHost is really enough.
-
Introduction to HTTP Multipart
You can technically add a Content-Length header for each part. It's not forbidden by the RFC, but nor is it common. It caused [problems](https://github.com/square/okhttp/issues/2138) for OkHttp, and they eventually removed it. Might be fine for internal-only use, though.
Boundaries are a lot like UUIDs, and rely on the same logic. When generating random data, once you have enough bits, the odds are against that sequence of bits ever having been generated before in the universe.
Dubbo
-
Dirty code: trusted keeper of errors. Broken windows theory
Let's look at the example from Apache Dubbo:
- Dubbo: A Robust Java RPC and Microservice Framework
-
What's the most interesting open-source project to study?
Dubbo
What are some alternatives?
unirest-java - Unirest in Java: Simplified, lightweight HTTP client library.
gRPC - The Java gRPC implementation. HTTP/2 based RPC
Async Http Client - Asynchronous Http and WebSocket Client library for Java
Netty - Netty project - an event-driven asynchronous network application framework
Finagle - A fault tolerant, protocol-agnostic RPC system