Skip to content

Commit a2a6166

Browse files
committed
Merge branch 'master' of github.com:software-tools-in-javascript/js4ds
2 parents 00cc073 + b17280e commit a2a6166

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

basics.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ \section{Exercises}\label{s:basics-exercises}
584584
Something else?
585585
(You might notice that \texttt{typeof\ typeof} is syntactically invalid.
586586
In such circumstances,
587-
an internet search engine is your friend,
587+
an Internet search engine is your friend,
588588
as is the \hreffoot{https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference}{Mozilla Developer Network}\index{Mozilla Developer Network} JavaScript reference.
589589
590590
\exercise{Fill in the Blanks}

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3617,7 +3617,7 @@ <h2 id="key-points-10" class="unnumbered unnumbered">Key Points</h2>
36173617
<li><p>PapaParse is a robust CSV parsing library that produces JSON output.</p></li>
36183618
</ul>
36193619
<h1 id="s:server">Creating a Server</h1>
3620-
<p>Now that we have a data manager (Chapter <a href="#s:dataman" data-reference-type="ref" data-reference="s:dataman">11</a>) the next step is to create a server to share our data with the world, which we will build using a library called <a href="https://expressjs.org/">Express</a>. Before we start writing code, though, we need to understand how computers talk to each other.</p>
3620+
<p>Now that we have a data manager (Chapter <a href="#s:dataman" data-reference-type="ref" data-reference="s:dataman">11</a>) the next step is to create a server to share our data with the world, which we will build using a library called <a href="https://expressjs.com/">Express</a>. Before we start writing code, though, we need to understand how computers talk to each other.</p>
36213621
<h2 id="s:server-http">HTTP</h2>
36223622
<p>Almost everything on the web communicates via the HyperText Transfer Protocol (<a href="#g:http"><strong>HTTP</strong></a>). The core of HTTP is a <a href="#g:http-request"><strong>request</strong></a>/<a href="#g:http-response"><strong>response</strong></a> cycle that specifies the kinds of requests applications can make of servers, how they exchange data, and so on. Figure <a href="#f:server-cycle" data-reference-type="ref" data-reference="f:server-cycle">[f:server-cycle]</a> shows this cycle in action for a page that includes one image.</p>
36233623
<figure>
@@ -3863,7 +3863,7 @@ <h3 id="delayed-replies" class="unnumbered unnumbered">Delayed Replies</h3>
38633863
<h3 id="using-query-parameters" class="unnumbered unnumbered">Using Query Parameters</h3>
38643864
<p>URLs can contain query parameters in the form:</p>
38653865
<pre class="text"><code>http://site.edu?first=123&amp;second=beta</code></pre>
3866-
<p>Read the online documentation for <a href="https://expressjs.org/">Express</a> to find out how to access them in a server, and then write a server to do simple arithmetic: the URL <code>http://localhost:3654/add?left=1&amp;right=2</code> should return <code>3</code>, while the URL <code>http://localhost:3654/subtract?left=1&amp;right=2</code> should return <code>-1</code>.</p>
3866+
<p>Read the online documentation for <a href="https://expressjs.com/">Express</a> to find out how to access them in a server, and then write a server to do simple arithmetic: the URL <code>http://localhost:3654/add?left=1&amp;right=2</code> should return <code>3</code>, while the URL <code>http://localhost:3654/subtract?left=1&amp;right=2</code> should return <code>-1</code>.</p>
38673867
<h2 id="key-points-11" class="unnumbered unnumbered">Key Points</h2>
38683868
<ul>
38693869
<li><p>An HTTP request or response consists of a plain-text header and an optional body.</p></li>

server.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ \chapter{Creating a Server}\label{s:server}
22

33
Now that we have a data manager (\chapref{s:dataman})
44
the next step is to create a server to share our data with the world,
5-
which we will build using a library called \hreffoot{https://expressjs.org/}{Express}.\index{Express}
5+
which we will build using a library called \hreffoot{https://expressjs.com/}{Express}.\index{Express}
66
Before we start writing code,
77
though,
88
we need to understand how computers talk to each other.
@@ -433,7 +433,7 @@ \section{Exercises}\label{s:server-exercises}
433433
\end{minted}
434434
435435
\noindent
436-
Read the online documentation for \hreffoot{https://expressjs.org/}{Express} to find out
436+
Read the online documentation for \hreffoot{https://expressjs.com/}{Express} to find out
437437
how to access them in a server,
438438
and then write a server to do simple arithmetic:
439439
the URL \texttt{http://localhost:3654/add?left=1\&right=2} should return \texttt{3},

0 commit comments

Comments
 (0)