-
Notifications
You must be signed in to change notification settings - Fork 1
Network utility
This class provides possibilities to work with headers, mainly parsing a string which contains headers and maintaining a list of headers.
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.
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
.
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.
Available since release 4.0.0
Represents an ip address and possible operations on an ip address.