PHP 클래스 lithium\net\Message

상속: extends lithium\core\Object
파일 보기 프로젝트 열기: unionofrad/lithium 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$body mixed The body of the message.
$host string The hostname for this endpoint.
$password string The password for this endpoint.
$path string Absolute path of the request.
$port string The port for this endpoint.
$scheme string The URI scheme.
$username string The username for this endpoint.

공개 메소드들

메소드 설명
__construct ( array $config = [] ) : void Constructor Adds config values to the public properties when a new object is created.
__toString ( ) : string Magic method to convert object to string.
body ( mixed $data = null, array $options = [] ) : array Add body parts and compile the message body.
to ( string $format, array $options = [] ) : mixed Converts the data in the record set to a different format, i.e. an array. Available options: array, url, context, or string.

메소드 상세

__construct() 공개 메소드

Constructor Adds config values to the public properties when a new object is created.
public __construct ( array $config = [] ) : void
$config array Available configuration options are: - `'scheme'` _string_: 'tcp' - `'host'` _string_: 'localhost' - `'port'` _integer_: null - `'username'` _string_: null - `'password'` _string_: null - `'path'` _string_: null - `'body'` _mixed_: null
리턴 void

__toString() 공개 메소드

Magic method to convert object to string.
public __toString ( ) : string
리턴 string

body() 공개 메소드

Add body parts and compile the message body.
public body ( mixed $data = null, array $options = [] ) : array
$data mixed
$options array - `'buffer'` _integer_: split the body string
리턴 array

to() 공개 메소드

Converts the data in the record set to a different format, i.e. an array. Available options: array, url, context, or string.
public to ( string $format, array $options = [] ) : mixed
$format string Format to convert to.
$options array
리턴 mixed

프로퍼티 상세

$body 공개적으로 프로퍼티

The body of the message.
public mixed $body
리턴 mixed

$host 공개적으로 프로퍼티

The hostname for this endpoint.
public string $host
리턴 string

$password 공개적으로 프로퍼티

The password for this endpoint.
public string $password
리턴 string

$path 공개적으로 프로퍼티

Absolute path of the request.
public string $path
리턴 string

$port 공개적으로 프로퍼티

The port for this endpoint.
public string $port
리턴 string

$scheme 공개적으로 프로퍼티

The URI scheme.
public string $scheme
리턴 string

$username 공개적으로 프로퍼티

The username for this endpoint.
public string $username
리턴 string