Skip to content

Commit 299578f

Browse files
committed
remove trailing whitespace
1 parent 4e3d431 commit 299578f

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

source/presentations/session02.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,16 @@ What does this look like in practice?
108108

109109
.. rst-class:: build
110110

111-
* SMTP (Simple Message Transfer Protocol) |br|
111+
* SMTP (Simple Message Transfer Protocol) |br|
112112
http://tools.ietf.org/html/rfc5321#appendix-D
113113

114-
* POP3 (Post Office Protocol) |br|
114+
* POP3 (Post Office Protocol) |br|
115115
http://www.faqs.org/docs/artu/ch05s03.html
116116

117-
* IMAP (Internet Message Access Protocol) |br|
117+
* IMAP (Internet Message Access Protocol) |br|
118118
http://www.faqs.org/docs/artu/ch05s03.html
119119

120-
* HTTP (Hyper-Text Transfer Protocol) |br|
120+
* HTTP (Hyper-Text Transfer Protocol) |br|
121121
http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
122122

123123

@@ -670,7 +670,7 @@ HTTP (Provide answers):
670670
<CRLF>
671671
<!DOCTYPE html>\n<html>\n <head>\n <title>This is a .... </html>
672672
673-
Pay particular attention to the ``<CRLF>`` on a line by itself.
673+
Pay particular attention to the ``<CRLF>`` on a line by itself.
674674

675675

676676
.. nextslide:: HTTP Core Format
@@ -868,7 +868,7 @@ In HTTP 1.0, the only required line in an HTTP request is this:
868868
a single required *header*, **Host**:
869869

870870
.. code-block:: http
871-
871+
872872
GET /path/to/index.html HTTP/1.1<CRLF>
873873
Host: www.mysite1.com:80<CRLF>
874874
<CRLF>
@@ -884,7 +884,7 @@ response body:
884884
.. container::
885885

886886
.. code-block:: http
887-
887+
888888
HTTP/1.1 200 OK<CRLF>
889889
Content-Type: text/plain<CRLF>
890890
<CRLF>
@@ -902,12 +902,12 @@ Begin by implementing a new function in your ``http_server.py`` script called
902902

903903
It can be super-simple for now. We'll improve it later.
904904

905-
.. container::
905+
.. container::
906906

907907
It needs to return our minimal response from above:
908908

909909
.. code-block:: http
910-
910+
911911
HTTP/1.1 200 OK<CRLF>
912912
Content-Type: text/plain<CRLF>
913913
<CRLF>
@@ -1074,11 +1074,11 @@ they might change something on the server:
10741074
.. rst-class:: build
10751075

10761076
* Safe HTTP Methods
1077-
1077+
10781078
* GET
1079-
1079+
10801080
* Unsafe HTTP Methods
1081-
1081+
10821082
* POST
10831083
* PUT
10841084
* DELETE
@@ -1098,13 +1098,13 @@ HTTP methods can be categorized as **idempotent**.
10981098
.. rst-class:: build
10991099

11001100
* Idempotent HTTP Methods
1101-
1101+
11021102
* GET
11031103
* PUT
11041104
* DELETE
1105-
1105+
11061106
* Non-Idempotent HTTP Methods
1107-
1107+
11081108
* POST
11091109

11101110
Again, *normative*. The developer is responsible for ensuring that it is true.
@@ -1185,7 +1185,7 @@ Quit and restart your server now that you've updated the code::
11851185
At this point, we should have seven tests passing:
11861186

11871187
.. code-block:: bash
1188-
1188+
11891189
$ python tests.py
11901190
Ran 10 tests in 0.002s
11911191
@@ -1365,7 +1365,7 @@ But what happens if we make a different request?
13651365
.. container::
13661366

13671367
.. container::
1368-
1368+
13691369
In your web browser, enter the following URL::
13701370

13711371
http://localhost:10000/page
@@ -1452,7 +1452,7 @@ Now we can update our server code so that it uses the return value of
14521452
That's a pretty simple change:
14531453

14541454
.. code-block:: python
1455-
1455+
14561456
try:
14571457
uri = parse_request(request) # update this line
14581458
except NotImplementedError:

0 commit comments

Comments
 (0)