2.4 HTTP
On this page:
extract-user-pass
Version: 4.1.4
2.4.5 Basic Authentication

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

An 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.

Example: (extract-user-pass (request-headers/raw req)) might return (cons #"aladin" #"open sesame").