MCPcopy Index your code
hub / github.com/coder/code-server / self

Function self

src/node/http.ts:330–332  ·  view source on GitHub ↗
(req: express.Request)

Source from the content-addressed store, hash-verified

328 * Return the full path to the current page, preserving any trailing slash.
329 */
330export const self = (req: express.Request): string => {
331 return normalize(`${req.baseUrl}${req.originalUrl.endsWith("/") ? "/" : ""}`, true)
332}
333
334function getFirstHeader(req: http.IncomingMessage, headerName: string): string | undefined {
335 const val = req.headers[headerName]

Callers 3

domainProxy.tsFile · 0.90
vscode.tsFile · 0.90
proxyFunction · 0.90

Calls 1

normalizeFunction · 0.90

Tested by

no test coverage detected