Web Server: PLT HTTP Server

1`` | Running the Web Server
2`` | Scheme Servlets
3`` | Web Language Servlets
4`` | Configuration
5`` | Dispatchers
6`` | Web Config Unit
7`` | Web Server Unit
8`` | Continuation Managers
9`` | Internal
10`` | Troubleshooting
11`` | Acknowledgements
| Index

On this page:

extract-user-pass

Version: 4.0.2
contents index
← prev up next →

#### 2.9`` Basic Authentication

(require web-server/servlet/basic-auth)

"servlet/basic-auth.ss" provides a function for helping with implementation of HTTP Basic Authentication.

(extract-user-pass heads)
→ (or/c false/c (cons/c bytes? bytes?))
heads : (listof header?)

Returns a pair of the username and password from the authentication header in heads if they are present, or #f

contents index
← prev up next →