• Preparing search index...
  • The search index is not available
@google/genai
  • @google/genai
  • interactions/internal/utils/path
  • encodeURIPath

Function encodeURIPath

  • encodeURIPath(str: string): string

    Percent-encode everything that isn't safe to have in a path without encoding safe chars.

    Taken from https://datatracker.ietf.org/doc/html/rfc3986#section-3.3:

    unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" pchar = unreserved / pct-encoded / sub-delims / ":" / "@"

    Parameters

    • str: string

    Returns string

    • Defined in src/interactions/internal/utils/path.ts:17

Settings

@google/genai
  • Loading...

Generated using TypeDoc