You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
411 B
15 lines
411 B
import {HTTPKernelModule} from "../HTTPKernelModule";
|
|
import {Request} from "../../lifecycle/Request";
|
|
import {HTTPKernel} from "../HTTPKernel";
|
|
|
|
export class PrepareRequestHTTPModule extends HTTPKernelModule {
|
|
public static register(kernel: HTTPKernel) {
|
|
kernel.register(this).first()
|
|
}
|
|
|
|
public async apply(request: Request) {
|
|
await request.prepare()
|
|
return request
|
|
}
|
|
}
|