Skip to content

Commit b17280e

Browse files
authored
Merge pull request #167 from cRAN-cg/fix_link
fix: link to express js
2 parents 0fca1f7 + 42046c8 commit b17280e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: docs/index.html

+2-2
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>

Diff for: server.tex

+2-2
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)