From fa9179916437d5e32177f930753ab0230b07c652 Mon Sep 17 00:00:00 2001
From: Eli Bendersky
Date: Tue, 19 Nov 2019 06:41:40 -0800
Subject: [PATCH] Reformat comoments to flow better with the code
---
examples.txt | 1 +
examples/context-in-http-servers/context-in-http-servers.go | 2 ++
examples/context-in-http-servers/context-in-http-servers.hash | 4 ++--
public/http-servers | 4 ++--
public/index.html | 2 ++
public/spawning-processes | 2 +-
6 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/examples.txt b/examples.txt
index dd3c157..aa3ce31 100644
--- a/examples.txt
+++ b/examples.txt
@@ -68,6 +68,7 @@ Command-Line Subcommands
Environment Variables
HTTP Clients
HTTP Servers
+Context in HTTP Servers
Spawning Processes
Exec'ing Processes
Signals
diff --git a/examples/context-in-http-servers/context-in-http-servers.go b/examples/context-in-http-servers/context-in-http-servers.go
index 09acd19..364d463 100644
--- a/examples/context-in-http-servers/context-in-http-servers.go
+++ b/examples/context-in-http-servers/context-in-http-servers.go
@@ -11,6 +11,7 @@ import (
)
func hello(w http.ResponseWriter, req *http.Request) {
+
// A `context.Context` is created for each request by
// the `net/http` machinery, and is available with
// the `Context()` method.
@@ -35,6 +36,7 @@ func hello(w http.ResponseWriter, req *http.Request) {
}
func main() {
+
// As before, we register our handler on the "/hello"
// route, and start serving.
http.HandleFunc("/hello", hello)
diff --git a/examples/context-in-http-servers/context-in-http-servers.hash b/examples/context-in-http-servers/context-in-http-servers.hash
index 6f5d37d..8e46d00 100644
--- a/examples/context-in-http-servers/context-in-http-servers.hash
+++ b/examples/context-in-http-servers/context-in-http-servers.hash
@@ -1,2 +1,2 @@
-4ec814bf1b01bf71fb95007cad39586ad87e3fb6
-k3vHfk-r3EE
+50f0c85266d1f8f546242ce8f8caf27732e99dff
+h1gVSe70R00
diff --git a/public/http-servers b/public/http-servers
index aa2802d..ee3c146 100644
--- a/public/http-servers
+++ b/public/http-servers
@@ -14,7 +14,7 @@
if (e.key == "ArrowRight") {
- window.location.href = 'spawning-processes';
+ window.location.href = 'context-in-http-servers';
}
}
@@ -201,7 +201,7 @@ router we’ve just set up.
- Next example: Spawning Processes.
+ Next example: Context in HTTP Servers.
HTTP Servers
+ Context in HTTP Servers
+
Spawning Processes
Exec'ing Processes
diff --git a/public/spawning-processes b/public/spawning-processes
index da8dfc5..748398a 100644
--- a/public/spawning-processes
+++ b/public/spawning-processes
@@ -9,7 +9,7 @@
onkeydown = (e) => {
if (e.key == "ArrowLeft") {
- window.location.href = 'http-servers';
+ window.location.href = 'context-in-http-servers';
}