Tag

Request library

1 views collected around this technical thread.

Bilibili Tech
Bilibili Tech
May 7, 2024 · Frontend Development

Design and Implementation of a Unified Front-End Request Library Based on Middleware Pattern

Bilibili created a unified front‑end request library using a Koa‑style middleware “onion” architecture—ConfigCtrl, AssembleCtrl, and RequestCtrl—to standardize error handling, cut code redundancy, improve performance, and provide consistent, extensible API calls across SSR/CSR, Vue2/Vue3, and in‑app H5 environments.

HTTPMiddlewareRequest library
0 likes · 16 min read
Design and Implementation of a Unified Front-End Request Library Based on Middleware Pattern
Bitu Technology
Bitu Technology
Nov 14, 2023 · Backend Development

Debugging Node.js 20 Upgrade Issues: Interaction Between Request, Sentry, and the HTTP Module

When Tubi upgraded from Node.js 14 to 20, server‑side requests began returning 404 errors, leading to a deep investigation that uncovered how the Request library and Sentry SDK altered HTTP module arguments, causing the built‑in URL detection to misclassify plain objects as URLs.

DebuggingHTTPNode.js
0 likes · 11 min read
Debugging Node.js 20 Upgrade Issues: Interaction Between Request, Sentry, and the HTTP Module