mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Support OnHttpRequest Lua callback
If your redbean `/.init.lua` file defines a global callable named `OnHttpRequest` then redbean will delegate all serving control to your function. You may then restore the default serving paths, by calling the new `Route()`, `RouteHost()`, and `RoutePath()` APIs. Closes #150
This commit is contained in:
parent
dc6d11a031
commit
472b95fea3
13 changed files with 671 additions and 568 deletions
43
tool/net/demo/redbean.css
Normal file
43
tool/net/demo/redbean.css
Normal file
|
@ -0,0 +1,43 @@
|
|||
html {
|
||||
font-family: sans-serif;
|
||||
font-size: 14pt;
|
||||
}
|
||||
|
||||
body {
|
||||
max-width: 700px;
|
||||
min-width: 700px;
|
||||
margin: 0 auto 0 auto;
|
||||
}
|
||||
|
||||
pre,
|
||||
code {
|
||||
font-family: monospace;
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.indent {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
margin: 1.5em 0 1.5em 0;
|
||||
}
|
||||
|
||||
h1 strong {
|
||||
font-size: 14pt;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 12em;
|
||||
margin-bottom: 3em;
|
||||
font-size: 14pt;
|
||||
}
|
||||
|
||||
.logo {
|
||||
float: right;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue