Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Network utility

Frank Kleine edited this page Aug 3, 2014 · 2 revisions

Other utility classes

stubbles\peer\HeaderList

This class provides possibilities to work with headers, mainly parsing a string which contains headers and maintaining a list of headers.

stubbles\peer\http\AcceptHeader

This class can parse the accept header from HTTP and provides access to check if a certain type is accepted, what it's priority is, and to find the best match if the accept header is compared against a selection of types. It can cope with Accept, Accept-Charset and Accept-Encoding.

stubbles\peer\ParsedUrl

Takes a url string as construction argument and provides access to each part of the url. In constrast to URL or HTTP no checks are done on the url string which means you can construct instances from invalid url strings, which is not possible with stubbles\peer\Url or stubbles\peer\http\HttpUrl.

stubbles\peer\QueryString

Takes a query string as construction argument and provides access to all of the parameters within the query string to modify and remove them or to add other parameters; and to rebuild a complete query string from this.

stubbles\peer\IpAddress

Available since release 4.0.0

Represents an ip address and possible operations on an ip address.

Clone this wiki locally