Fake Mirrors
    Preparing search index...

    Wrapper for HTTP message URL.

    Constructors

    Properties

    formatQueryStringOptions: FormatQueryStringOptions = {}

    Custom options for formatting query strings

    parseQueryStringOptions: ParseQueryStringOptions = {}

    Custom options for parsing query strings

    Accessors

    Methods

    • Match URL pathname against string or regex.

      Parameters

      • value: string | RegExp

        String path or RegExp pattern

      Returns boolean

      true if pathname matches, false otherwise

    • Merge partial URL object.

      Parameters

      • url: Partial<HttpUrl>

        Partial URL object with properties to update

      Returns this

      This wrapper for method chaining

      If wrapper is frozen

    • Factory method to create wrapper from request-like object.

      Parameters

      • req: { url?: string }

        Object with optional url property

      Returns HttpUrlWrap

      New wrapper instance

      If req.url is not defined