directScheme property

String directScheme
getter/setter pair

The scheme of a request object that did not come from a server (eg. in a unit test), with no trusted proxy in front: https when the main port has AppConfig.tls, else http. DoxServer.listen sets it, once per isolate, and sets it back to http when the server is closed. With more than one listen (only in tests), the last listen or close wins. A request of a server does not use it: see directSchemeOf.

Implementation

static String directScheme = 'http';