| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 523 lines (15 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Parser:: (20 methods):
__construct()
parse()
has_data()
is_linear_whitespace()
http_version()
status()
reason()
add_header()
replace_header()
new_line()
name()
linear_whitespace()
value()
value_char()
quote()
quote_char()
quote_escaped()
body()
chunked()
prepareHeaders()
| __construct(string $data, bool $psr7Compatible = false) X-Ref |
| Create an instance of the class with the input data param: string $data Input data param: Psr7Compatible $psr7Compatible Whether the data types are in format compatible with PSR-7. |
| parse() X-Ref |
| Parse the input data return: bool true on success, false on failure |
| has_data() X-Ref |
| Check whether there is data beyond the pointer return: bool true if there is further data, false if not |
| is_linear_whitespace() X-Ref |
| See if the next character is LWS return: bool true if the next character is LWS, false if not |
| http_version() X-Ref |
| Parse the HTTP version return: void |
| status() X-Ref |
| Parse the status code return: void |
| reason() X-Ref |
| Parse the reason phrase return: void |
| add_header(string $name, string $value) X-Ref |
| No description |
| replace_header(string $name, string $value) X-Ref |
| No description |
| new_line() X-Ref |
| Deal with a new line, shifting data around as needed return: void |
| name() X-Ref |
| Parse a header name return: void |
| linear_whitespace() X-Ref |
| Parse LWS, replacing consecutive LWS characters with a single space return: void |
| value() X-Ref |
| See what state to move to while within non-quoted header values return: void |
| value_char() X-Ref |
| Parse a header value while outside quotes return: void |
| quote() X-Ref |
| See what state to move to while within quoted header values return: void |
| quote_char() X-Ref |
| Parse a header value while within quotes return: void |
| quote_escaped() X-Ref |
| Parse an escaped character within quotes return: void |
| body() X-Ref |
| Parse the body return: void |
| chunked() X-Ref |
| Parsed a "Transfer-Encoding: chunked" body return: void |
| prepareHeaders(string $headers, int $count = 1) X-Ref |
| Prepare headers (take care of proxies headers) param: string $headers Raw headers param: non-negative-int $count Redirection count. Default to 1. return: string |
| Generated : Sat Apr 18 08:20:10 2026 | Cross-referenced by PHPXref |