TlsOptions
final class TlsOptions
Methods
static TlsOptions
fromArray(array $options)
Create TLS options from a Laravel-style stream context.
bool
enabled()
Determine whether TLS is enabled.
int
socketType(int $type = SWOOLE_SOCK_TCP)
Apply TLS to a Swoole socket type when enabled.
array
settings()
Get the translated Swoole settings.
Details
at line 19
static TlsOptions
fromArray(array $options)
Create TLS options from a Laravel-style stream context.
at line 53
bool
enabled()
Determine whether TLS is enabled.
at line 62
int
socketType(int $type = SWOOLE_SOCK_TCP)
Apply TLS to a Swoole socket type when enabled.
at line 72
array
settings()
Get the translated Swoole settings.