MCPcopy Create free account
hub / github.com/denoland/std / toString

Method toString

http/user_agent.ts:1184–1186  ·  view source on GitHub ↗

* Converts the current instance to a string. * * @example Usage * ```ts ignore * import { UserAgent } from "@std/http/user-agent"; * * Deno.serve((req) => { * const userAgent = new UserAgent(req.headers.get("user-agent") ?? ""); * return new Response(`Hello, ${userAgent.t

()

Source from the content-addressed store, hash-verified

1182 * @returns The user agent string.
1183 */
1184 toString(): string {
1185 return this.#ua;
1186 }
1187
1188 /**
1189 * Custom output for {@linkcode Deno.inspect}.

Callers 15

decodeZeroFunction · 0.45
decodeOneFunction · 0.45
decodeTwoFunction · 0.45
decodeThreeFunction · 0.45
decodeFourFunction · 0.45
decodeFiveFunction · 0.45
decodeSixFunction · 0.45
decodeSevenFunction · 0.45
decodeMapFunction · 0.45
#decodeZeroMethod · 0.45
#decodeOneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected