HTTP: The Definitive Guide cover

HTTP: The Definitive Guide

Rating 4.5
Word count
1.1K words
Chapters
36
Series
Turing Programming Series
ISBN
9787115281487

Tags

Summary

HTTP: The Definitive Guide is the volume in O'Reilly's classic Definitive Guide series that covers HTTP and the core technologies of the Web. The Chinese edition was brought out in the Turing Programming Series, translated by Chen Juan and Zhao Zhenping. The book takes HTTP as its center, yet its aim goes beyond the protocol itself: it seeks to explain how the Web actually works and how that knowledge applies to Web programming, operations, and management. The content unfolds in six parts. Part One lays the foundation, starting with an overview of HTTP and explaining clients and servers, resources and URI/URL/URN, transactions and status codes, messages and connections, and clarifying URL syntax and encoding rules; it then goes deeper into the structure and syntax of HTTP messages, and into connection management topics such as TCP/IP, parallel connections, and persistent connections. Part Two covers HTTP architectural components: Web servers, proxies, caches, gateways, tunnels and relays, Web robots, and also introduces HTTP-NG, still under exploration at the time. Part Three focuses on identification, authentication, and security, including client identification and cookies, Basic authentication, Digest authentication, and secure HTTP. Part Four deals with entities and encoding, internationalization, content negotiation, and transcoding. Part Five concerns content publishing and distribution: Web hosting, publishing systems, redirection and load balancing, and logging and usage tracking. Part Six consists of appendices with quick-reference material such as URI schemes, status codes, a header reference, MIME types, Base-64 encoding, Digest authentication, language tags, and the MIME charset registry. With numerous diagrams and examples, the book explains what actually happens behind each request, and it explains why things are designed as they are rather than merely listing specifications, so it serves both as a systematic read and as a reference to consult as needed. One caveat: the protocol details discussed reflect the standards at the time of writing and do not include later developments such as HTTP/2 and HTTP/3.

Editor's review

很多人学 Web 是从框架和库开始的:路由怎么配、缓存怎么设、跨域怎么解。可一旦线上出现 301 链路过长、静态资源反复回源、Cookie 作用域不对、Vary 首部被忽略这类问题,缺的往往不是 API 记忆,而是对协议本身的理解。《HTTP权威指南》正是补这一块的书。 它的分量首先来自扎实。全书按「基础—结构—安全—实体与国际化—发布与分发」的顺序推进,先讲清 URL、报文、连接这些地基,再讲代理与缓存这类真正决定性能的组件,最后落到托管、负载均衡与日志。附录部分覆盖状态码、首部、MIME 类型等,可以当手册翻。作者的写法值得称道:对每条规则都尽量交代动机,而不是只给结论,读者因此能把零散知识点串成一套 Web 的运行模型。 年代感也不必回避。中文版译自 2002 年原书,讲的是 HTTP/1.1 时代的技术图景,书中没有 HTTP/2、QUIC 和现代 HTTPS 实践,个别展望已有变化。但正因为如此,它更适合作为一个稳固的底座:先把 1.1 的语义、缓存模型和代理体系吃透,再看后来协议演进,反而更容易理解每一项改动想解决什么问题。

Who it's for

A good fit for

  • 从事 Web 后端、前端或全栈开发,希望弄清协议底层运作的工程师
  • 需要排查缓存、代理、重定向、Cookie 等线上问题的运维与 SRE 人员
  • 计算机网络课程的学生,想找一本能当参考书用的系统读物
  • 系统架构师与性能优化工程师,需要理解缓存与负载均衡机制

Not a good fit for

  • 零基础入门者:书中假定读者了解 TCP/IP、客户端与服务器等基本概念
  • 只想快速掌握某个框架或抓包工具用法的读者,本书不提供工具教程
  • 专找 HTTP/2、HTTP/3、QUIC 等新协议内容的读者,本书未涵盖

Reading tips

  1. 第一次读可按章序推进,把第1至4章读透,URL、报文与连接是后面所有章节的地基
  2. 读到代理、缓存、重定向等章节时,配合浏览器开发者工具或抓包工具观察真实请求,效果更佳
  3. 不必从头背到尾,第三至五部分与附录适合遇到具体问题时按需查阅
  4. 读完后补充 HTTP/2、HTTP/3 与现代 TLS 实践的资料,把书中的 1.1 模型接到当下的技术栈上

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Part I: HTTP: The Web's Foundation
  2. Chapter 1: Overview of HTTP
  3. Chapter 2: URLs and Resources
  4. Chapter 3: HTTP Messages
  5. Chapter 4: Connection Management
  6. Part II: HTTP Architecture
  7. Chapter 5: Web Servers
  8. Chapter 6: Proxies
  9. Chapter 7: Caching
  10. Chapter 8: Integration Points: Gateways, Tunnels, and Relays
  11. Chapter 9: Web Robots
  12. Chapter 10: HTTP-NG
  13. Part III: Identification, Authentication, and Security
  14. Chapter 11: Client Identification and Cookies
  15. Chapter 12: Basic Authentication
  16. Chapter 13: Digest Authentication
  17. Chapter 14: Secure HTTP
  18. Part IV: Entities, Encodings, and Internationalization
  19. Chapter 15: Entities and Encodings
  20. Chapter 16: Internationalization
  21. Chapter 17: Content Negotiation and Transcoding
  22. Part V: Content Publishing and Distribution
  23. Chapter 18: Web Hosting
  24. Chapter 19: Publishing Systems
  25. Chapter 20: Redirection and Load Balancing
  26. Chapter 21: Logging and Usage Tracking
  27. Part VI: Appendices
  28. Appendix A: URI Schemes
  29. Appendix B: HTTP Status Codes
  30. Appendix C: HTTP Header Reference
  31. Appendix D: MIME Types
  32. Appendix E: Base-64 Encoding
  33. Appendix F: Digest Authentication
  34. Appendix G: Language Tags
  35. Appendix H: MIME Charset Registry
  36. Index

FAQ

这本书讲的是 HTTP/1.1 吗,会不会太旧?
中文版译自 O'Reilly 2002 年原书,内容以 HTTP/1.1 为核心,不涉及 HTTP/2、HTTP/3 与 QUIC。协议语义、缓存模型、代理与认证机制至今仍然有效,适合打基础;新协议部分需另找资料补充。
零基础能读懂吗?
不算理想的入门书。作者默认读者了解客户端/服务器、TCP/IP 等基本概念,也不教具体编程语言。建议先有一点 Web 开发或网络基础,再读会顺畅很多。
这本书适合当教材吗?
可以。全书结构清晰、附有大量图示与附录速查表,国内不少高校的网络相关课程把它列为参考书。作为系统通读加随时查阅的资料都很合适。
中文版是谁翻译的,质量如何?
中文版由陈涓、赵振平翻译,人民邮电出版社 2012 年出版,属图灵程序设计丛书。术语基本沿用业界通行译法,正文中的技术名词多保留英文,便于对照原文与文档。
适合拿来准备面试吗?
适合作为长期底子而非速记手册。面试常问的缓存与状态码、持久连接、Cookie 与认证等内容书中都有深入讲解,但需要自己整理成答题脉络;纯刷题的话效率不及专题笔记。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category