Foundations of Python Network Programming
Chapter 9 ■ http Clients 159 then a service needs to include a Vary header in every response listing the other headers on which ...
Chapter 9 ■ http Clients 160 HTTP/1.1 200 OK Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT ... A client that wants to reuse a cac ...
Chapter 9 ■ http Clients 161 Caching is also important to think about if you are configuring or running a proxy, a topic that I ...
Chapter 9 ■ http Clients 162 The types and languages listed first have the strongest preference value of 1.0, while the ones tha ...
Chapter 9 ■ http Clients 163 All subsequent calls to methods like s.get() will use this default value for the header unless they ...
Chapter 9 ■ http Clients 16 4 You can read RFC 7235 to learn about the most recent HTTP authentication mechanisms. The initial s ...
Chapter 9 ■ http Clients 165 Note that this mechanism, as implemented by Requests or other modern libraries, is not the full-fle ...
Chapter 9 ■ http Clients 166 More subtly, a login page that is not a true web form but that uses Ajax to stay on the same page ( ...
Chapter 9 ■ http Clients 167 Note that an HTTPConnection object that gets hung up on will not return an error, but it will silen ...
169 Chapter 10 HTTP Servers How can a Python program run as a server responding to HTTP requests? In Chapter 7, you learned seve ...
Chapter 10 ■ http ServerS 170 Other programmers wanted to serve dynamic pages from a web server that could also serve static con ...
Chapter 10 ■ http ServerS 171 After the debut of WSGI, the idea of WSGI middleware enjoyed a heyday—the idea that Python HTTP se ...
Chapter 10 ■ http ServerS 17 2 Early descriptions of the Web seem to have imagined that forward proxies would be the most common ...
Chapter 10 ■ http ServerS 17 3 • Run a server that is itself written in Python and that can call your WSGI endpoint directly ...
Chapter 10 ■ http ServerS 174 The choice between these four architectures has historically been driven by three features of the ...
Chapter 10 ■ http ServerS 175 In such cases, do consider the safety that a reverse proxy provides. To bring your web service to ...
Chapter 10 ■ http ServerS 176 With PaaS, much of the tedium of establishing and running an HTTP service is automated away—or, at ...
Chapter 10 ■ http ServerS 17 7 Dr. Fielding is specific that “REST is defined by four interface constraints,” which he briefly e ...
Chapter 10 ■ http ServerS 178 If the first three constraints of REST are achieved, then a service becomes radically transparent ...
Chapter 10 ■ http ServerS 179 There are two ways to build the WSGI callable that your web server will invoke for HTTP requests t ...
«
4
5
6
7
8
9
10
11
12
13
»
Free download pdf