[Top]
Protocols
Protocols.HTTP
Protocols.HTTP.Server
Protocols.HTTP.Server.SSLPort
|
Method Protocols.HTTP.Server.SSLPort()->create()
- Method
create
void Protocols.HTTP.Server.SSLPort(function(Request:void) _callback, void|int _portno, void|string _interface, void|string key, void|string|array certificate)
- Description
Create a HTTPS (HTTP over SSL) server.
- Parameter _callback
The function run when a request is received.
takes one argument of type Request .
- Parameter _portno
The port number to bind to, defaults to 443.
- Parameter _interface
The interface address to bind to.
- Parameter key
An optional SSL secret key, provided in binary format, such
as that created by Standards.PKCS.RSA.private_key() .
- Parameter certificate
An optional SSL certificate or chain of certificates with the host
certificate first, provided in binary format.
|