mirror of
https://github.com/uNetworking/uWebSockets.js.git
synced 2025-12-19 18:10:26 -05:00
Update index.d.ts
This commit is contained in:
4
docs/index.d.ts
vendored
4
docs/index.d.ts
vendored
@@ -206,8 +206,8 @@ export interface HttpResponse {
|
||||
export interface HttpRequest {
|
||||
/** Returns the lowercased header value or empty string. */
|
||||
getHeader(lowerCaseKey: RecognizedString) : string;
|
||||
/** Returns the parsed parameter at index. Corresponds to route. */
|
||||
getParameter(index: number) : string;
|
||||
/** Returns the parsed parameter at index. Corresponds to route. Can also take the name of the parameter. */
|
||||
getParameter(index: number | RecognizedString) : string | undefined;
|
||||
/** Returns the URL including initial /slash */
|
||||
getUrl() : string;
|
||||
/** Returns the lowercased HTTP method, useful for "any" routes. */
|
||||
|
||||
Reference in New Issue
Block a user