[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/third-party/Nyholm/Psr7/ -> MessageTrait.php (summary)

Trait implementing functionality common to requests and responses.

Author: Michael Dowling and contributors to guzzlehttp/psr7
Author: Tobias Nyholm
Author: Martijn van der Ven
File Size: 195 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 13 functions

  getProtocolVersion()
  withProtocolVersion()
  getHeaders()
  hasHeader()
  getHeader()
  getHeaderLine()
  withHeader()
  withAddedHeader()
  withoutHeader()
  getBody()
  withBody()
  setHeaders()
  validateAndTrimHeader()

Functions
Functions that are not part of a class:

getProtocolVersion()   X-Ref
No description

withProtocolVersion($version)   X-Ref

return: static

getHeaders()   X-Ref
No description

hasHeader($header)   X-Ref
No description

getHeader($header)   X-Ref
No description

getHeaderLine($header)   X-Ref
No description

withHeader($header, $value)   X-Ref

return: static

withAddedHeader($header, $value)   X-Ref

return: static

withoutHeader($header)   X-Ref

return: static

getBody()   X-Ref
No description

withBody(StreamInterface $body)   X-Ref

return: static

setHeaders(array $headers)   X-Ref
No description

validateAndTrimHeader($header, $values)   X-Ref
Make sure the header complies with RFC 7230.

Header names must be a non-empty string consisting of token characters.

Header values must be strings consisting of visible characters with all optional
leading and trailing whitespace stripped. This method will always strip such
optional whitespace. Note that the method does not allow folding whitespace within
the values as this was deprecated for almost all instances by the RFC.

header-field = field-name ":" OWS field-value OWS
field-name   = 1*( "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / "^"
/ "_" / "`" / "|" / "~" / %x30-39 / ( %x41-5A / %x61-7A ) )
OWS          = *( SP / HTAB )
field-value  = *( ( %x21-7E / %x80-FF ) [ 1*( SP / HTAB ) ( %x21-7E / %x80-FF ) ] )




Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref