HttpClient is Outdated, OkHttp is Losing Ground! This Tool is the New King!

HttpClient is Outdated, OkHttp is Losing Ground! This Tool is the New King!

We are dedicated to exploring, sharing, and recommending the latest practical technology stacks, open-source projects, frameworks, and useful tools. Fresh open-source information awaits your discovery every day! Using <span>SpringBoot</span> directly with <span>OkHttp</span>, <span>HttpClient</span>, or <span>RestTemplate</span> to initiate <span>HTTP</span> requests is cumbersome and inconvenient for unified management. Therefore, we recommend a lightweight HTTP client framework suitable … Read more

Ditch OkHttp and HttpClient: This Lightweight HTTP Client Framework is Incredibly Useful!

Ditch OkHttp and HttpClient: This Lightweight HTTP Client Framework is Incredibly Useful!

Using <span>OkHttp</span>, <span>HttpClient</span>, or <span>RestTemplate</span> to initiate <span>HTTP</span> requests directly in a <span>SpringBoot</span> project is cumbersome and inconvenient for unified management. Therefore, I recommend a lightweight HTTP client framework suitable for <span>SpringBoot</span> projects: <span>retrofit-spring-boot-starter</span>, which is very simple and convenient to use while providing many enhanced features. The project has currently been updated to version … Read more

Httpx: The Future Star of Asynchronous HTTP!

Httpx: The Future Star of Asynchronous HTTP!

▼ Click the card below to follow me ▲ Click the card above to follow me Who is still struggling with requests? This year, httpx has quietly reached the threshold and become the new “top player” in Python network requests. Don’t be fooled by its name, which sounds like requests’ younger brother; it actually has … Read more

Flurl: A Powerful HTTP Client Library

Flurl: A Powerful HTTP Client Library

Flurl is a modern URL builder.Building Flurl.Url Implicitly create Flurl.Url objects using string extension methods using Flurl;var url = "https://some-api.com" .AppendPathSegment("endpoint") .SetQueryParams(new { api_key = _config.GetValue<string>("MyApiKey"), max_results = 20, q = "I'll get encoded!" }) .SetFragment("after-hash");// result:// https://some-api.com/endpoint?api_key=xxx&amp;max_results=20&amp;q=I%27ll%20get%20encoded%21#after-hash 2. Create a Url object explicitly; all string extension methods can also be used with System.Uri var … Read more

The Useful HTTP Client Library OkHttp

The Useful HTTP Client Library OkHttp

OkHttp In Spring Boot development, calling third-party HTTP interfaces is a very common requirement, such as calling microservices or accessing external APIs. Although Spring Boot provides HTTP calling tools like RestTemplate and WebClient, sometimes we may need a lower-level, more flexible, and higher-performance HTTP client library, and OkHttp is a relatively mature solution. Why Choose … Read more

In-Depth Analysis of the MCP Protocol: Three Steps to Achieve Direct HTTP Client Connection, Disrupting Traditional Development Models

In-Depth Analysis of the MCP Protocol: Three Steps to Achieve Direct HTTP Client Connection, Disrupting Traditional Development Models

This article introduces how to connect a custom HTTP client to the MCP server without the MCP client. MCP is a protocol that enables large language models (LLM) to connect to any endpoint, simplifying the connection between developers and external tools. The article details the architectural components of MCP and provides an implementation process, including … Read more

Httpx: The Swiss Army Knife of HTTP Clients in Python

Httpx: The Swiss Army Knife of HTTP Clients in Python

▼ Click the card below to follow me ▲ Click the card above to follow me Httpx: The Swiss Army Knife for Python Network Requests In the realm of network programming, sending HTTP requests is like a fundamental skill for programmers. Today, I want to introduce you to an incredibly powerful library – Httpx. It … Read more

Aiohttp: A Powerful Asynchronous HTTP Library for Python!

Aiohttp: A Powerful Asynchronous HTTP Library for Python!

▼ Click the card below to follow me ▲ Click the card above to follow me Aiohttp: Making Asynchronous Network Programming in Python Super Easy! In modern web applications and web scraping development, efficient network request handling is crucial. Aiohttp is a powerful tool that makes asynchronous network programming effortless. Based on Python’s asyncio framework, … Read more

Verb: Another HTTP REST Client in Emacs

Verb: Another HTTP REST Client in Emacs

Introduction The <span>restclient</span> in Emacs has been archived and is no longer maintained, so we need to look for other packages to replace it. After some searching, I found that federicotdn/verb: HTTP client for Emacs[1] is quite good and also supports <span>org babel</span>. Installation (use-package verb :init (cl-pushnew '(verb . t) load-language-list) :config (define-key org-mode-map … Read more

Httpx: An Asynchronous HTTP Client Library for Python!

Httpx: An Asynchronous HTTP Client Library for Python!

▼ Click the card below to follow me ▲ Click the card above to follow me Httpx, an asynchronous HTTP client, is a powerful tool for Python! When it comes to making network requests, it truly excels. Think about it, previously when you used the requests library, you had to wait for one request to … Read more