36 lines
637 B
Plaintext
36 lines
637 B
Plaintext
type WorkerFailure {
|
|
error Failed(message: Text)
|
|
}
|
|
|
|
http() (result: Bool) {
|
|
port.plain(config.limits(), config.largeBody(), config.lifetime())
|
|
result = true
|
|
}
|
|
|
|
https() (result: Bool) {
|
|
port.secure(
|
|
config.limits(),
|
|
config.largeBody(),
|
|
config.lifetime(),
|
|
config.certificate(),
|
|
config.key()
|
|
)
|
|
result = true
|
|
}
|
|
|
|
http2() (result: Bool) {
|
|
port.plain(config.http2Limits(), config.largeBody(), config.lifetime())
|
|
result = true
|
|
}
|
|
|
|
https2() (result: Bool) {
|
|
port.secure(
|
|
config.http2Limits(),
|
|
config.largeBody(),
|
|
config.lifetime(),
|
|
config.certificate(),
|
|
config.key()
|
|
)
|
|
result = true
|
|
}
|