blob: 398f4dc7c8dbc2b6915bd14cae29fccc28107451 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
// -*- C++ -*-
//
// $Id$
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
namespace HTTP
{
ACE_INLINE
const ACE_CString& URL::get_scheme () const
{
return protocol ();
}
ACE_INLINE
const ACE_CString& URL::get_query () const
{
return this->query_;
}
ACE_INLINE
const ACE_CString& URL::get_fragment () const
{
return this->fragment_;
}
ACE_INLINE
void URL::set_query (const ACE_CString& query)
{
this->query_ = query;
}
ACE_INLINE
void URL::set_fragment (const ACE_CString& fragment)
{
this->fragment_ = fragment;
}
ACE_INLINE
void URL::set_proxy (const ACE_CString& proxy_host, u_short proxy_port)
{
this->proxy_host_ = proxy_host;
this->proxy_port_ = proxy_port;
}
ACE_INLINE
const ACE_CString& URL::get_proxy_host () const
{
return this->proxy_host_;
}
ACE_INLINE
u_short URL::get_proxy_port () const
{
return this->proxy_port_;
}
ACE_INLINE
bool URL::has_proxy () const
{
return !this->proxy_host_.empty ();
}
ACE_INLINE
u_short URL::default_port () const
{
return HTTP_PORT;
}
}
}
ACE_END_VERSIONED_NAMESPACE_DECL
|