summaryrefslogtreecommitdiff
path: root/apps/JAWS2/HTTPU/http_headers.i
blob: 73ea46e57b6dc3b44b1366eb72d04836d799a923 (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
// -*- c++ -*-
// $Id$

#if !defined (ACE_HAS_INLINED_OSCALLS)
# undef ACE_INLINE
# define ACE_INLINE
#endif /* ACE_HAS_INLINED_OSCALLS */

ACE_INLINE
HTTP_Hdr_Node::operator const int (void) const
{
  return this->index_;
}

ACE_INLINE
HTTP_Hdr_Node::operator const char * (void) const
{
  return this->token_;
}

ACE_INLINE const char *
HTTP_Hdr_Node::format (void) const
{
  return this->format_;
}

ACE_INLINE const HTTP_Hdr_Node &
HTTP_HCodes::hcode (int type) const
{
  const HTTP_Hdr_Node **hn = this->header_nodes_->find (type);

  // No error checking!
  return **hn;
}

ACE_INLINE const char *
HTTP_Headers::header_token (int name) const
{
  const HTTP_Hdr_Node **hn = this->header_nodes_->find (name);
  return ((hn && *hn) ? (const char *)**hn : 0);
}

ACE_INLINE const char *
HTTP_Headers::header_strings (int name) const
{
  const HTTP_Hdr_Node **hn = this->header_nodes_->find (name);
  return ((hn && *hn) ? (*hn)->format () : 0);
}