HTTP URI handler
Check if the URI is a valid HTTP URI
This applies additional HTTP specific validation rules beyond the ones required by the generic URI syntax
| Return type: | bool |
|---|---|
| See : |
Get the username part (before the ‘:’) of the userInfo URI part
| Return type: | null|string |
|---|
Get the password part (after the ‘:’) of the userInfo URI part
| Return type: | string |
|---|
Set the username part (before the ‘:’) of the userInfo URI part
| Parameters: | string – |
|---|---|
| Return type: | Http |
Set the password part (after the ‘:’) of the userInfo URI part
| Parameters: | string – |
|---|---|
| Return type: | Http |
Validate the host part of an HTTP URI
This overrides the common URI validation method with a DNS or IP only default. Users may still enforce allowing other host types.
| Parameters: |
|
|---|---|
| Return type: | bool |
Parse the user info into username and password segments
Parses the user information into username and password segments, and then sets the appropriate values.
| Return type: | void |
|---|
Return the URI port
If no port is set, will return the default port according to the scheme
| Return type: | integer |
|---|---|
| See : |
Parse a URI string
| Parameters: | string – |
|---|---|
| Return type: | Http |