Skip to main content

Module env_resolver

Module env_resolver 

Source
Expand description

Resolve the BROWSER_CONTROL environment variable / --browser argument into a concrete browser endpoint.

Parsing priority (most-to-least specific):

  1. URL with scheme ws://, wss://, http://, https://BrowserSelector::Url.
  2. Absolute path that exists on disk → BrowserSelector::ExecutablePath.
  3. String that matches a Kind (case-insensitive) → BrowserSelector::Kind.
  4. Anything else → BrowserSelector::Name.

Structs§

DefaultResolver
Production resolver: real HTTP + on-disk browser detection.
ResolvedBrowser
Result of resolving a BrowserSelector.

Enums§

BrowserSelector
Parsed form of a BROWSER_CONTROL value.
Source
Where the resolved browser came from.

Traits§

Resolver
I/O surface for resolve_with. Implementations provide HTTP discovery (/json/version) and the list of installed browsers.

Functions§

parse
Parse a raw BROWSER_CONTROL value into a BrowserSelector.
resolve
Resolve a selector using the real environment.
resolve_with
Resolve a selector using an injected Resolver for I/O.