PHP 클래스 SimplePie_HTTP_Parser, ojs

파일 보기 프로젝트 열기: pkp/ojs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$body string Body of the response
$data string Input data
$data_length integer Input data length (to avoid calling strlen() every time this is needed)
$headers array Key/value pairs of the headers
$http_version float HTTP Version
$name string Name of the hedaer currently being parsed
$position integer Current position of the pointer
$reason string Reason phrase
$state string Current state of the state machine
$status_code integer Status code
$value string Value of the hedaer currently being parsed

공개 메소드들

메소드 설명
SimplePie_HTTP_Parser ( string $data ) Create an instance of the class with the input data
body ( ) Parse the body
has_data ( ) : boolean Check whether there is data beyond the pointer
http_version ( ) Parse the HTTP version
is_linear_whitespace ( ) : boolean See if the next character is LWS
linear_whitespace ( ) Parse LWS, replacing consecutive LWS characters with a single space
name ( ) Parse a header name
new_line ( ) Deal with a new line, shifting data around as needed
parse ( ) : boolean Parse the input data
quote ( ) See what state to move to while within quoted header values
quote_char ( ) Parse a header value while within quotes
quote_escaped ( ) Parse an escaped character within quotes
reason ( ) Parse the reason phrase
status ( ) Parse the status code
value ( ) See what state to move to while within non-quoted header values
value_char ( ) Parse a header value while outside quotes

메소드 상세

SimplePie_HTTP_Parser() 공개 메소드

Create an instance of the class with the input data
public SimplePie_HTTP_Parser ( string $data )
$data string Input data

body() 공개 메소드

Parse the body
public body ( )

has_data() 공개 메소드

Check whether there is data beyond the pointer
public has_data ( ) : boolean
리턴 boolean true if there is further data, false if not

http_version() 공개 메소드

Parse the HTTP version
public http_version ( )

is_linear_whitespace() 공개 메소드

See if the next character is LWS
public is_linear_whitespace ( ) : boolean
리턴 boolean true if the next character is LWS, false if not

linear_whitespace() 공개 메소드

Parse LWS, replacing consecutive LWS characters with a single space
public linear_whitespace ( )

name() 공개 메소드

Parse a header name
public name ( )

new_line() 공개 메소드

Deal with a new line, shifting data around as needed
public new_line ( )

parse() 공개 메소드

Parse the input data
public parse ( ) : boolean
리턴 boolean true on success, false on failure

quote() 공개 메소드

See what state to move to while within quoted header values
public quote ( )

quote_char() 공개 메소드

Parse a header value while within quotes
public quote_char ( )

quote_escaped() 공개 메소드

Parse an escaped character within quotes
public quote_escaped ( )

reason() 공개 메소드

Parse the reason phrase
public reason ( )

status() 공개 메소드

Parse the status code
public status ( )

value() 공개 메소드

See what state to move to while within non-quoted header values
public value ( )

value_char() 공개 메소드

Parse a header value while outside quotes
public value_char ( )

프로퍼티 상세

$body 공개적으로 프로퍼티

Body of the response
public string $body
리턴 string

$data 공개적으로 프로퍼티

Input data
public string $data
리턴 string

$data_length 공개적으로 프로퍼티

Input data length (to avoid calling strlen() every time this is needed)
public int $data_length
리턴 integer

$headers 공개적으로 프로퍼티

Key/value pairs of the headers
public array $headers
리턴 array

$http_version 공개적으로 프로퍼티

HTTP Version
public float $http_version
리턴 float

$name 공개적으로 프로퍼티

Name of the hedaer currently being parsed
public string $name
리턴 string

$position 공개적으로 프로퍼티

Current position of the pointer
public int $position
리턴 integer

$reason 공개적으로 프로퍼티

Reason phrase
public string $reason
리턴 string

$state 공개적으로 프로퍼티

Current state of the state machine
public string $state
리턴 string

$status_code 공개적으로 프로퍼티

Status code
public int $status_code
리턴 integer

$value 공개적으로 프로퍼티

Value of the hedaer currently being parsed
public string $value
리턴 string