(body: string)
| 547 | /** `a=b&c=d` — no whitespace, at least one `key=`. Deliberately strict: a prose |
| 548 | * body like `route not found` must NOT be mistaken for one field. */ |
| 549 | const isFormEncoded = (body: string): boolean => |
| 550 | /^[^=&\s]+=[^&\s]*(?:&[^=&\s]+=[^&\s]*)*$/.test(body); |
| 551 | |
| 552 | const tokenEndpointHttpSummary = async (response: Response): Promise<string> => { |
| 553 | const status = `HTTP ${response.status}${response.statusText ? ` ${response.statusText}` : ""}`; |
no outgoing calls
no test coverage detected