# HttpsServer Type alias
Module | import { HttpsServer } from "@tsed/common" |
---|---|
Source | /packages/common/src/platform-builder/decorators/httpsServer.ts |
# Overview
type HttpsServer = Https.Server & IHttpsFactory;
/**
* Inject the Https.Server instance.
*
* ### Example
*
* ```typescript
* import {HttpsServer, Service} from "@tsed/common";
*
* @Service()
* export default class OtherService {
* constructor(@HttpsServer httpServer: HttpServer) {}
* }
* ```
*
* > Note: TypeScript transform and store `HttpsServer` as `Function` type in the metadata. So to inject a factory, you must use the `@Inject(type)` decorator.
*
* @param {Type<any>} target
* @param {string} targetKey
* @param {TypedPropertyDescriptor<Function> | number} descriptor
* @returns {any}
* @decorator
*/
export function HttpsServer(target: Type<any>, targetKey: string, descriptor: TypedPropertyDescriptor<Function> | number): any;
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Jest
- Seq
- Controllers
- Providers
- Model
- Converters
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing