This is automatic generated document for things in Swow\Psr7\Utils\OperatorTrait class

Trait OperatorTrait

Methods

Static method setBody

public static function setBody ( T $message , mixed $body ) : T

Template T of MessageInterface

Static method setHeaders

public static function setHeaders ( T $message , array<string, (array<string> | string)> $headers ) : T

Template T of MessageInterface

Static method setStatus

public static function setStatus ( T $response , int $code , string $reasonPhrase ) : T

Template T of ResponseInterface

Static method withBody

public static function withBody ( T $message , mixed $body ) : T

Template T of MessageInterface

Static method withHeaders

public static function withHeaders ( T $message , array<string, (array<string> | string)> $headers ) : T

Template T of MessageInterface


Copyright 2022 the Swow contributors