Home | Trees | Index | Help |
|
---|
Package aquarium :: Package parse :: Module Host |
|
Parse the Host header.
Function Summary | |
---|---|
Return a regex for a valid hostname. | |
Parse the Host header. |
Function Details |
---|
getHostnameRegex()Return a regex for a valid hostname. There's not much point in being overly strict about what you'll accept in the HOST header, so I'll accept anything that's even vaguely similar to a hostname or IP. |
parseHost(header=None, defaultReturnValue=(None, None), isSecure=False)Parse the Host header.
Return a tuple (serverName, serverPort). We're not very strict about requiring the Host header. See also: Host |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 | http://epydoc.sf.net |