Python isinstance() Function

Python isinstance() Function

Description The isinstance() function is used to check if an object is of a known type, similar to type(). Differences between isinstance() and type(): type() does not consider subclasses as a type of the parent class and does not take inheritance into account. isinstance() considers subclasses as a type of the parent class and takes … Read more

Frontend HTTP Requests: A Practical Guide to Accurately Determining Data Reception Completion

Frontend HTTP Requests: A Practical Guide to Accurately Determining Data Reception Completion

When users download large files and the progress stalls at 99%, or when real-time data streams suddenly interrupt without notice—these typical issues stem from neglecting to accurately determine the completion of HTTP responses. This article will delve into solving a key challenge in frontend development:How to accurately determine whether HTTP response data has been completely … Read more

Understanding Classes in Python: A Beginner’s Guide

Understanding Classes in Python: A Beginner's Guide

“Class” is likely the first advanced usage that many encounter when learning Python, and its peculiar format and statements can easily confuse beginners. I also kept my distance from “classes” for a long time, but later used them in a project. I found them very convenient after using just a few simple features. This article … Read more

A Detailed Explanation of HTTP-Based Unidirectional Streaming Communication Protocol SSE

A Detailed Explanation of HTTP-Based Unidirectional Streaming Communication Protocol SSE

Detailed Explanation of SSE (Server-Sent Events) 🧠 What is SSE? SSE (Server-Sent Events) is a communication mechanism defined in the HTML5 standard that allows the server to actively push events to the client (browser). Unlike traditional HTTP request-response, SSE is a unidirectional streaming communication protocol based on HTTP. 📌 Core Features Feature Description Communication Method … Read more

Goodbye SSE, Embrace Streamable HTTP

Goodbye SSE, Embrace Streamable HTTP

With the rapid development of artificial intelligence (<span>AI</span>), efficient communication between AI assistants and applications has become particularly important. The Model Context Protocol (<span>MCP</span>, abbreviated as <span>MCP</span>) has emerged to provide a standardized interface for large language models (<span>LLMs</span>) to interact with external data sources and tools. Among the many features of <span>MCP</span>, the <span>Streamable … Read more

Comparative Analysis of HTTP, SSE, and WebSocket

Comparative Analysis of HTTP, SSE, and WebSocket

Click the blue text to follow us Currently, large models are quite popular. When we initiate requests on web pages or mobile clients, the communication protocol used is SSE (Server-Sent Events). HTTP and WebSocket are two communication protocols similar to SSE. These three different network communication protocols are suitable for different scenarios, and here we … Read more

Can HTTP/2 + SSE Completely Replace WebSocket?

Can HTTP/2 + SSE Completely Replace WebSocket?

Hello everyone, it’s great to see you again, I am “Frontend Technology Advancement“, and I will guide everyone to pay attention to the cutting-edge of frontend technology and delve into the underlying technologies, let’s progress together. Also, feel free to follow, like, bookmark, and share! 1. What is SSE (Server-Sent Events) Server-Sent Events (SSE) is … Read more

Software Testing Notes | Basics of Python Programming | Object-Oriented: Inheritance

Software Testing Notes | Basics of Python Programming | Object-Oriented: Inheritance

“A little gesture, please give a follow~”👇 I have once been scarred, I have once wandered far and wide. This is not my desolation, this is my medal. When one day someone asks about my past, I will be proud, not for those scars that have healed, but for the time when I chased my … Read more