16 lines
468 B
TypeScript
16 lines
468 B
TypeScript
import type { BunxRouteParams } from "../types";
|
|
type Params = {
|
|
req: Request;
|
|
query?: any;
|
|
/**
|
|
* Maximum request body size. Defaults to
|
|
* `ServerDefaultRequestBodyLimitBytes`.
|
|
*/
|
|
max_body_bytes?: number;
|
|
};
|
|
/**
|
|
* Throws `RequestBodyTooLargeError` if the body exceeds `max_body_bytes`.
|
|
*/
|
|
export default function grabRouteParams({ req: initial_req, query: passed_query, max_body_bytes, }: Params): Promise<BunxRouteParams>;
|
|
export {};
|