Skip to main content

Module fake_https

Module fake_https 

Source
Available on crate feature fake only.
Expand description

A test’s HTTPS server on the loopback, standing for a server whose certificate is self-signed (fake_https/server.crt.der, made once with openssl req -x509 -newkey ec): each request answered by the test, and every request that reached it kept, so a test tells a request refused before it was sent.

Structs§

Request
One request the server was sent.
Server
The server, serving until it drops.

Functions§

fingerprint
The server’s certificate’s fingerprint: what a client pins.