Tagged articles
11 articles
Page 1 of 1
FunTester
FunTester
Jul 22, 2025 · Backend Development

Mastering Go's ServeMux: Custom Handlers, Redirects, and Closures

This guide explains Go's net/http ServeMux as a request router, demonstrates built‑in handlers like RedirectHandler, shows how to create custom http.Handler implementations, use functions as handlers, and pass variables via closures, complete with runnable code examples.

Custom HandlerGoHTTP handlers
0 likes · 8 min read
Mastering Go's ServeMux: Custom Handlers, Redirects, and Closures
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 24, 2024 · Backend Development

Using Function Types and Interfaces to Build Flexible HTTP Handlers in Go

This article explains how Go's net/http package leverages function types combined with interfaces—particularly the Handler and HandlerFunc types—to create concise, flexible HTTP servers, reducing boilerplate, improving code reuse and testability, and demonstrates practical examples and underlying implementations.

Backend DevelopmentGoHandler
0 likes · 9 min read
Using Function Types and Interfaces to Build Flexible HTTP Handlers in Go
Architecture Development Notes
Architecture Development Notes
Aug 7, 2024 · Backend Development

Why fasthttp Beats net/http by 10×: Deep Dive into Go’s High‑Performance HTTP Library

This article examines why Go’s fasthttp library can outperform the standard net/http package by up to tenfold, covering memory allocation strategies, zero‑copy techniques, connection pooling, and additional optimizations, and offers guidance on when to choose each library for high‑performance backend services.

GoZero Copyfasthttp
0 likes · 5 min read
Why fasthttp Beats net/http by 10×: Deep Dive into Go’s High‑Performance HTTP Library
Go Programming World
Go Programming World
Jun 3, 2024 · Backend Development

Using GRequests: A Go Clone of Python Requests for Simplified HTTP Requests

This article introduces the Go library grequests—a clone of Python's requests—demonstrates its installation, compares its API with net/http, and provides concise examples for GET, POST, query strings, basic authentication, and file upload/download, highlighting its simplicity and advantages for HTTP client development.

APIGoHTTP
0 likes · 10 min read
Using GRequests: A Go Clone of Python Requests for Simplified HTTP Requests
Su San Talks Tech
Su San Talks Tech
Mar 10, 2024 · Backend Development

Why fasthttp Outperforms net/http: Inside Go’s Ultra‑Fast Server

This article compares Go’s standard net/http library with the high‑performance fasthttp server, detailing their request‑handling workflows, explaining fasthttp’s optimizations such as connection reuse, sync.Pool and unsafe.Pointer conversions, and walking through core code structures like workerPool, workerChan, and the Serve routine.

BackendGofasthttp
0 likes · 16 min read
Why fasthttp Outperforms net/http: Inside Go’s Ultra‑Fast Server
IEG Growth Platform Technology Team
IEG Growth Platform Technology Team
Feb 21, 2022 · Backend Development

Deep Dive into Go net/http and Gin Framework Source Code

This article provides a comprehensive analysis of Go's net/http library and the Gin framework, detailing request handling flow, router implementation, middleware chaining, and context management, while presenting key source code excerpts to illustrate how HTTP services are built and extended in Go.

GinGoHTTP
0 likes · 18 min read
Deep Dive into Go net/http and Gin Framework Source Code
FunTester
FunTester
Nov 30, 2021 · Backend Development

Which HTTP Client Wins? Java FunTester vs Go net/http vs fasthttp Performance Test

The article presents a detailed performance comparison of three HTTP client implementations—Java FunTester, Go's net/http, and the high‑performance fasthttp library—across multiple thread counts and artificial latency settings, reporting CPU usage, memory consumption, and QPS to determine the most efficient choice.

BenchmarkGoHTTP
0 likes · 9 min read
Which HTTP Client Wins? Java FunTester vs Go net/http vs fasthttp Performance Test