Skip to Content
Python 技術手冊 第三版
book

Python 技術手冊 第三版

by lex Martelli, Anna Martelli Ravenscroft, Steve Holden
January 2018
Intermediate to advanced content levelIntermediate to advanced
856 pages
17h 17m
Chinese
GoTop Information, Inc.
Content preview from Python 技術手冊 第三版
636
|
20 章 HTTP 網路服務
隨著基於微服務(microservices)的系統之崛起,HTTP 對分散式系統的
設計變得越來越重要,提供了一種便利的方式在行程之間傳輸經常使用的
JSON 內容。現在 Internet 上有數以千計可公開取用的 HTTP 資料 API。雖
HTTP 原理從它成形的 1990 年代中期到現在幾乎都沒有改變,不過
這幾年間它的能力已被大幅提升。要找更詳細涵蓋基礎知識的優良參考資
源,我們推薦 O
Reilly
HTTP: The Definitive Guide
WSGI
Python Web Server Gateway InterfaceWSGI
https://www.python.org/
dev/peps/pep-3333/
))是現代所有的 Python web 開發框架與底層 web 伺服
器或閘道(gateways)互動時所用的標準。WSGI 主要並不是要讓你的應
用程式直接使用的,取而代之,你會用數個較高抽象層的框架之一來編寫
你的程式,而這些框架則會使用 WSGI 來與 web 伺服器溝通。
只有在你需要實作某個 web 伺服器沒有提供的 WSGI 介面(如果有這種伺
服器存在的話),或你在建置一個新的 Python web 框架
2
時,你才需要在意
WSGI 的細節。若是如此,就研讀 WSGI PEP
https://www.python.org/
dev/peps/pep-3333/
)、標準程式庫套件
wsgiref
https://docs.python.or ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

測試驅動開發|使用 Python

測試驅動開發|使用 Python

Harry J.W. Percival
Linux 内核观测技术BPF

Linux 内核观测技术BPF

David Calavera, Lorenzo Fontana

Publisher Resources

ISBN: 9789864766819