Aplus Framework Docs

Protocol
in package

Class Protocol.

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

Table of Contents

Constants

HTTP_1_0  : string = 'HTTP/1.0'
HTTP_1_1  : string = 'HTTP/1.1'
HTTP_2  : string = 'HTTP/2'
HTTP_2_0  : string = 'HTTP/2.0'
HTTP_3  : string = 'HTTP/3'

Properties

$protocols  : array<string|int, string>

Methods

validate()  : string

Constants

Properties

$protocols

protected static array<string|int, string> $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

        
On this page

Search results