1818_Hypertext Transfer Protocol_, already mentioned in
1919link:12_browser.html#web[Chapter 12], is the mechanism through which
2020data 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))
2222JavaScript has access to it.
2323
2424== The protocol ==
@@ -42,7 +42,7 @@ Then the server responds, through that same connection.
4242[source,http]
4343----
4444HTTP/1.1 200 OK
45- Content-Length: 3122
45+ Content-Length: 65585
4646Content-Type: text/html
4747Last-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
153152the user to fill out information and send it to the server. This is an
154153example of a form:
155154
@@ -609,7 +608,7 @@ tedious.
609608solve this with extra abstractions. One of the more successful ones is
610609called _promises_. Promises wrap an asynchronous action in an object,
611610which 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
613612version of the JavaScript language but can already be used as a
614613library.
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
917916has 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
920919the array fail, the promise returned by `all` fails too (with the
921920failure value from the failing promise).
922921
0 commit comments