/usr/share/doc/racket/plai/web.html is in racket-doc 6.7-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>7 Web Application Scheme</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_0");">▼</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x"><span style="font-style: italic">Programming Languages:<span class="mywbr"> </span> Application and Interpretation</span></a></td></tr></table></div><div class="tocviewsublisttop" style="display: block;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="plai-scheme.html" class="tocviewlink" data-pltdoc="x">PLAI Scheme</a></td></tr><tr><td align="right">2 </td><td><a href="collector.html" class="tocviewlink" data-pltdoc="x">GC Collector Scheme</a></td></tr><tr><td align="right">3 </td><td><a href="mutator.html" class="tocviewlink" data-pltdoc="x">GC Mutator Scheme</a></td></tr><tr><td align="right">4 </td><td><a href="gc2-collector.html" class="tocviewlink" data-pltdoc="x">GC Collector Language, 2</a></td></tr><tr><td align="right">5 </td><td><a href="gc2-mutator.html" class="tocviewlink" data-pltdoc="x">GC Mutator Language, 2</a></td></tr><tr><td align="right">6 </td><td><a href="Generating_Random_Mutators.html" class="tocviewlink" data-pltdoc="x">Generating Random Mutators</a></td></tr><tr><td align="right">7 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">Web Application Scheme</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_1");">►</a></td><td>7 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">Web Application Scheme</a></td></tr></table><div class="tocviewsublistbottom" style="display: none;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">7.1 </td><td><a href="#%28part._.Web_.Application_.Exports%29" class="tocviewlink" data-pltdoc="x">Web Application Exports</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber">7.1<tt> </tt></span><a href="#%28part._.Web_.Application_.Exports%29" class="tocsubseclink" data-pltdoc="x">Web Application Exports</a></td></tr><tr><td><a href="#%28def._%28%28lib._plai%2Fscribblings%2Ffake-web..rkt%29._start%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">start</span></span></a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.7", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.7");">top</a></span><span class="navright"> <a href="Generating_Random_Mutators.html" title="backward to "6 Generating Random Mutators"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "Programming Languages: Application and Interpretation"" data-pltdoc="x">up</a> <span class="nonavigation">next →</span></span> </div><h3 x-source-module="(lib "plai/scribblings/plai.scrbl")" x-source-pkg="plai-doc" x-part-tag=""web"">7<tt> </tt><a name="(part._web)"></a><a name="(mod-path._plai/web)"></a>Web Application Scheme</h3><p><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace"> </span><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=guide&rel=Module_Syntax.html%23%2528part._hash-lang%2529&version=6.7" class="RktModLink Sq" data-pltdoc="x"><span class="RktMod">#lang</span></a><span class="hspace"> </span><a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">plai/web</span></a></td><td align="right"><span class="RpackageSpec"><span class="Smaller"> package:</span> <span class="stt">plai-lib</span></span></td></tr></table></p><p>The Web Application Scheme language allows you to write server-side Web applications for the
PLT Web Server.</p><p>For more information about writing Web applications, see:
<a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=web-server&rel=index.html&version=6.7" class="Sq" data-pltdoc="x">Web Applications in Racket</a>.</p><p>When you click on the <span class="ssansserif">Run</span> button in DrRacket, your Web application
is launched in the Web server.</p><p>The application is available at
<span style="font-style: italic">http://localhost:8000/servlets/standalone.rkt</span>.</p><p>The Web Application Scheme language will automatically load this URL in your Web browser.</p><p>You may use <span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=web-server&rel=run.html%23%2528def._%2528%2528lib._web-server%252Finsta%252Finsta..rkt%2529._no-web-browser%2529%2529&version=6.7" class="RktValLink Sq" data-pltdoc="x">no-web-browser</a></span> to prevent the browser from being launched
and <span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=web-server&rel=run.html%23%2528def._%2528%2528lib._web-server%252Finsta%252Finsta..rkt%2529._static-files-path%2529%2529&version=6.7" class="RktValLink Sq" data-pltdoc="x">static-files-path</a></span> to serve additional static files.</p><h4 x-source-module="(lib "plai/scribblings/plai.scrbl")" x-source-pkg="plai-doc" x-part-tag=""Web_Application_Exports"">7.1<tt> </tt><a name="(part._.Web_.Application_.Exports)"></a>Web Application Exports</h4><p>A Web application must define a procedure <span class="RktSym"><a href="#%28def._%28%28lib._plai%2Fscribblings%2Ffake-web..rkt%29._start%29%29" class="RktValLink" data-pltdoc="x">start</a></span>:</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plai/scribblings/fake-web..rkt)._start))"></a><span class="RktSym"><a href="#%28def._%28%28lib._plai%2Fscribblings%2Ffake-web..rkt%29._start%29%29" class="RktValDef RktValLink" data-pltdoc="x">start</a></span><span class="hspace"> </span><span class="RktVar">initial-request</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym">response?</span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">initial-request</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym">request?</span></td></tr></table></blockquote></div><div class="SIntrapara">The initial request to a Web application is serviced by this procedure.</div></p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.7", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.7");">top</a></span><span class="navright"> <a href="Generating_Random_Mutators.html" title="backward to "6 Generating Random Mutators"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "Programming Languages: Application and Interpretation"" data-pltdoc="x">up</a> <span class="nonavigation">next →</span></span> </div></div></div><div id="contextindicator"> </div></body></html>
|