-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (57 loc) · 2.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<title>wsfn - a static web server toolkit</title>
<link rel="stylesheet" href="https://caltechlibrary.github.io/css/site.css">
</head>
<body>
<header>
<a href="https://library.caltech.edu"><img src="https://caltechlibrary.github.io/assets/liblogo.gif" alt="Caltech Library logo"></a>
</header>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="./">README</a></li>
<li><a href="user-manual.html">User Manual</a></li>
<li><a href="LICENSE">LICENSE</a></li>
<li><a href="INSTALL.html">INSTALL</a></li>
<li><a href="about.html">About</a></li>
<li><a href="https://github.com/rsdoiel/wsfn">GitHub</a></li>
</ul>
</nav>
<section>
<h1 id="wsfn">wsfn</h1>
<p><em>wsfn</em> is a package for common web functions Caltech Library
uses in various Golang based Caltech Library tools and services. The
goal is to standardize our handling of web interactions.</p>
<ul>
<li>wsfn.CORSPolicy is a structure for adding CORS headers to a http
Handler</li>
<li>StaticRouter is a http Handler Function for working with static
routes</li>
<li>RedirectRouter handles simple target prefix, destination prefix
redirect handling
<ul>
<li>AddRedirectRoute adds a target prefix and destination prefix</li>
<li>HasRedirectRoutes return true if any redirect routes are
configured</li>
<li>RedirectRouter uses the internal redirect data to handle
redirects</li>
</ul></li>
<li>ReverseProxy router lets front other web services.</li>
</ul>
<p>An example <strong>webserver</strong> is also provided to demonstrate
some of the functionality available with this package. The
<strong>webserver</strong> is intended for instructional purposes only
and shouldn’t be used in a production setting.</p>
</section>
<footer>
<span><h1><A href="http://caltech.edu">Caltech</a></h1></span>
<span>© 2023 <a href="https://www.library.caltech.edu/copyright">Caltech library</a></span>
<address>1200 E California Blvd, Mail Code 1-32, Pasadena, CA 91125-3200</address>
<span>Phone: <a href="tel:+1-626-395-3405">(626)395-3405</a></span>
<span><a href="mailto:library@caltech.edu">Email Us</a></span>
<a class="cl-hide" href="sitemap.xml">Site Map</a>
</footer>
</body>
</html>