Pike v8.1 release 6

Class Protocols.HTTP.Server.SSLPort

Inheritance graph
Description

A very simple SSL server. Binds a port and calls a callback with request_program objects.


Inherit Port

inherit SSL.Port : Port


Variable request_program

object|function(:void)|program Protocols.HTTP.Server.SSLPort.request_program


Method create

Protocols.HTTP.Server.SSLPort Protocols.HTTP.Server.SSLPort(function(Request:void) callback, void|int port, void|string interface, void|string|Crypto.Sign.State key, void|string|array(string) certificate, void|int share)

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 port

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.

Parameter share

If true, the connection will be shared if possible. See Stdio.Port.bind for more information