Aplus Framework Docs

Protocol
in package

Class Protocol.

Tags
see
https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview

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

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
Tags
throws
InvalidArgumentException

for invalid protocol

Return values
string

Search results