* 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
()
| 1182 | * @returns The user agent string. |
| 1183 | */ |
| 1184 | toString(): string { |
| 1185 | return this.#ua; |
| 1186 | } |
| 1187 | |
| 1188 | /** |
| 1189 | * Custom output for {@linkcode Deno.inspect}. |
no outgoing calls
no test coverage detected