All incomplete examples have been updated and some corrections have been made to the parser to make them work. (0.37.17)
This commit is contained in:
parent
37c5ae6f58
commit
92aacff71a
41 changed files with 654 additions and 130 deletions
|
|
@ -32,3 +32,21 @@ else
|
|||
data = sock_recv(fd, 8192)
|
||||
print(data)
|
||||
sock_close(fd)
|
||||
|
||||
/* Possible output:
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 18 Dec 2025 23:05:52 GMT
|
||||
Content-Type: text/html
|
||||
Connection: close
|
||||
Vary: accept-encoding
|
||||
Server: cloudflare
|
||||
Last-Modified: Wed, 17 Dec 2025 03:51:06 GMT
|
||||
Accept-Ranges: bytes
|
||||
Cache-Control: max-age=14400
|
||||
cf-cache-status: REVALIDATED
|
||||
CF-RAY: 9b024eb71d91e51d-TXL
|
||||
|
||||
<!doctype html><html lang="en"><head><title>Example Domain</title><meta name="viewport" content="width=device-width, initial-scale=1"><style>body{background:#eee;width:60vw;margin:15vh auto;font-family:system-ui,sans-serif}h1{font-size:1.5em}div{opacity:0.8}a:link,a:visited{color:#348}</style><body><div><h1>Example Domain</h1><p>This domain is for use in documentation examples without needing permission. Avoid use in operations.<p><a href="https://iana.org/domains/example">Learn more</a></div></body></html>
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue