Camel.URL¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
authmech |
r/w |
||
fragment |
r/w |
||
host |
r/w |
||
params |
r/w |
||
path |
r/w |
||
port |
r/w |
||
protocol |
r/w |
||
query |
r/w |
||
user |
r/w |
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Camel.URL¶
- classmethod addrspec_end(in_, pos, inend, match)¶
- Parameters:
in (
str
) –pos (
str
) –inend (
str
) –match (
Camel.UrlMatch
) –
- Return type:
- classmethod addrspec_start(in_, pos, inend, match)¶
- Parameters:
in (
str
) –pos (
str
) –inend (
str
) –match (
Camel.UrlMatch
) –
- Return type:
- classmethod decode(part)¶
- Parameters:
part (
str
) – a URLCamel.part
%-decodes the passed-in URL *in place*. The decoded version is never longer than the encoded version, so there does not need to be any additional space at the end of the string.
- classmethod encode(part, escape_extra)¶
- Parameters:
- Returns:
the encoded string
- Return type:
This %-encodes the given URL
Camel.part
and returns the escaped version in allocated memory, which the caller must free when it is done.
- classmethod file_end(in_, pos, inend, match)¶
- Parameters:
in (
str
) –pos (
str
) –inend (
str
) –match (
Camel.UrlMatch
) –
- Return type:
- classmethod file_start(in_, pos, inend, match)¶
- Parameters:
in (
str
) –pos (
str
) –inend (
str
) –match (
Camel.UrlMatch
) –
- Return type:
- classmethod new(url_string)¶
- Parameters:
url_string (
str
) – a URL string- Raises:
- Returns:
- Return type:
Parses an absolute URL.
- classmethod web_end(in_, pos, inend, match)¶
- Parameters:
in (
str
) –pos (
str
) –inend (
str
) –match (
Camel.UrlMatch
) –
- Return type:
- classmethod web_start(in_, pos, inend, match)¶
- Parameters:
in (
str
) –pos (
str
) –inend (
str
) –match (
Camel.UrlMatch
) –
- Return type:
- equal(u2)¶
- free()¶
Frees self.
- get_param(name)¶
- Parameters:
name (
str
) – name of the param- Returns:
the value of a param if found or
None
otherwise- Return type:
Get the value of the specified param on the URL.
- new_with_base(url_string)¶
-
Parses url_string relative to self.
- set_authmech(authmech)¶
- Parameters:
authmech (
str
) – authentication mechanism
Set the authmech of a
Camel.URL
.
- set_protocol(protocol)¶
- Parameters:
protocol (
str
) – protocol schema
Set the protocol of a
Camel.URL
.
- to_string(flags)¶
- Parameters:
flags (
Camel.URLFlags
) – additional translation options- Returns:
a string representing self, which the caller must free
- Return type:
Flatten a
Camel.URL
into a string.