Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HTTPS #183

Closed
5 tasks done
crookse opened this issue Apr 18, 2020 · 0 comments
Closed
5 tasks done

Support HTTPS #183

crookse opened this issue Apr 18, 2020 · 0 comments

Comments

@crookse
Copy link
Member

crookse commented Apr 18, 2020

Summary

What: Support HTTPS

Why: HTTPS is available in deno so we should support it.

Acceptance Criteria

  • A Drash app can be started using HTTPS
  • server.run() uses HTTPOptions as argument
  • server.runTLS() uses HTTPSOptions as argument
  • Documentation
  • Tests

Example Pseudo Code (for implementation)

export {
  HTTPOptions,
  HTTPSOptions,
  serveTLS
} from "https://deno.land/std@{version}/http/server.ts";
export class Server {
  ...
  runTLS(options: HTTPOptions) {
    ...
  },
  runTLS(options: HTTPSOptions) {
    ...
  }
  ...
}
server.run({
  hostname: "localhost",
  port: 1447,
});

server.runTLS({
  hostname: "localhost",
  port: 1447,
  certFile: "",
  keyFile: ""
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant