Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
572e4235
Commit
572e4235
authored
Apr 22, 2017
by
Marcel Stör
Browse files
Unwind bit.ly link
parent
ef1654fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/en/modules/net.md
View file @
572e4235
...
...
@@ -322,7 +322,7 @@ srv:on("receive", function(sck, c) print(c) end)
srv
:
on
(
"connection"
,
function
(
sck
,
c
)
-- 'Connection: close' rather than 'Connection: keep-alive' to have server
-- initiate a close of the connection after final response (frees memory
-- earlier here), http://
bit.ly/2pkOrsi
-- earlier here), http
s
://
tools.ietf.org/html/rfc7230#section-6.6
sck
:
send
(
"GET /get HTTP/1.1\r\nHost: httpbin.org\r\nConnection: close\r\nAccept: */*\r\n\r\n"
)
end
)
srv
:
connect
(
80
,
"httpbin.org"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment