Skip to content

Commit 8169838

Browse files
committed
Proofread Chapter 17
1 parent 15749a7 commit 8169838

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

17_http.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ____
1818
_Hypertext Transfer Protocol_, already mentioned in
1919
link:12_browser.html#web[Chapter 12], is the mechanism through which
2020
data is requested and provided on the ((World Wide Web)). This chapter
21-
describes the ((protocol)) in detail and explains the way ((browser))
21+
describes the ((protocol)) in more detail and explains the way ((browser))
2222
JavaScript has access to it.
2323

2424
== The protocol ==
@@ -42,7 +42,7 @@ Then the server responds, through that same connection.
4242
[source,http]
4343
----
4444
HTTP/1.1 200 OK
45-
Content-Length: 3122
45+
Content-Length: 65585
4646
Content-Type: text/html
4747
Last-Modified: Wed, 09 Apr 2014 10:48:09 GMT
4848

@@ -148,8 +148,7 @@ simultaneously, rather than waiting for the responses one at a time.
148148
((request))s.
149149

150150
[[http_forms]]
151-
(((POST method)))Generating `POST` requests in a ((browser)) is also a
152-
common thing to do. HTML pages may include _((form))s_, which allow
151+
HTML pages may include _((form))s_, which allow
153152
the user to fill out information and send it to the server. This is an
154153
example of a form:
155154

@@ -609,7 +608,7 @@ tedious.
609608
solve this with extra abstractions. One of the more successful ones is
610609
called _promises_. Promises wrap an asynchronous action in an object,
611610
which can be passed around and told to do certain things when the
612-
action finishes or fails. They are set to become part of the next
611+
action finishes or fails. This interface is set to become part of the next
613612
version of the JavaScript language but can already be used as a
614613
library.
615614

@@ -915,8 +914,8 @@ which is the code a server should return when it can't fulfill the
915914

916915
(((all function)))(((Promise constructor)))The `Promise` constructor
917916
has an `all` method that, given an array of ((promise))s, returns a
918-
promise that waits for all of the promises in the array to finish. It then succeeds
919-
itself, yielding an array of result values. If any of the promises in
917+
promise that waits for all of the promises in the array to finish. It then succeeds,
918+
yielding an array of result values. If any of the promises in
920919
the array fail, the promise returned by `all` fails too (with the
921920
failure value from the failing promise).
922921

0 commit comments

Comments
 (0)