1955. Class

1955.1. Zend\Uri\Http

HTTP URI handler

1955.1.1. Methods

1955.1.1.1. isValid

isValid()

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 :

1955.1.1.2. getUser

getUser()

Get the username part (before the ‘:’) of the userInfo URI part

Return type:null|string

1955.1.1.3. getPassword

getPassword()

Get the password part (after the ‘:’) of the userInfo URI part

Return type:string

1955.1.1.4. setUser

setUser()

Set the username part (before the ‘:’) of the userInfo URI part

Parameters:string
Return type:Http

1955.1.1.5. setPassword

setPassword()

Set the password part (after the ‘:’) of the userInfo URI part

Parameters:string
Return type:Http

1955.1.1.6. validateHost

validateHost()

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:
  • string
  • integer
Return type:

bool

1955.1.1.7. parseUserInfo

parseUserInfo()

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

1955.1.1.8. getPort

getPort()

Return the URI port

If no port is set, will return the default port according to the scheme

Return type:integer
See :

1955.1.1.9. parse

parse()

Parse a URI string

Parameters:string
Return type:Http