Protocol
in package
Class Protocol.
Tags
Table of Contents
- HTTP_1_0 = 'HTTP/1.0'
- HTTP_1_1 = 'HTTP/1.1'
- HTTP_2 = 'HTTP/2'
- HTTP_2_0 = 'HTTP/2.0'
- HTTP_3 = 'HTTP/3'
- $protocols : array<string|int, mixed>
- validate() : string
Constants
HTTP_1_0
public
string
HTTP_1_0
= 'HTTP/1.0'
Tags
HTTP_1_1
public
string
HTTP_1_1
= 'HTTP/1.1'
Tags
HTTP_2
public
string
HTTP_2
= 'HTTP/2'
Tags
HTTP_2_0
public
string
HTTP_2_0
= 'HTTP/2.0'
Tags
HTTP_3
public
string
HTTP_3
= 'HTTP/3'
Tags
Properties
$protocols
protected
static array<string|int, mixed>
$protocols
= ['HTTP/1.0', 'HTTP/1.1', 'HTTP/2.0', 'HTTP/2', 'HTTP/3']
Methods
validate()
public
static validate(string $protocol) : string
Parameters
- $protocol : string