Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

https.d.ts 1.6KB

123456789101112131415161718192021222324252627282930313233343536
  1. declare module 'https' {
  2. import * as tls from 'tls';
  3. import * as http from 'http';
  4. import { URL } from 'url';
  5. type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
  6. type RequestOptions = http.RequestOptions & tls.SecureContextOptions & {
  7. rejectUnauthorized?: boolean; // Defaults to true
  8. servername?: string; // SNI TLS Extension
  9. };
  10. interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
  11. rejectUnauthorized?: boolean;
  12. maxCachedSessions?: number;
  13. }
  14. class Agent extends http.Agent {
  15. constructor(options?: AgentOptions);
  16. options: AgentOptions;
  17. }
  18. interface Server extends http.HttpBase {}
  19. class Server extends tls.Server {
  20. constructor(requestListener?: http.RequestListener);
  21. constructor(options: ServerOptions, requestListener?: http.RequestListener);
  22. }
  23. function createServer(requestListener?: http.RequestListener): Server;
  24. function createServer(options: ServerOptions, requestListener?: http.RequestListener): Server;
  25. function request(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
  26. function request(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
  27. function get(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
  28. function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
  29. let globalAgent: Agent;
  30. }