~ubuntu-branches/ubuntu/wily/afnix/wily

« back to all changes in this revision

Viewing changes to src/mod/nwg/shl/HttpRequest.hpp

  • Committer: Package Import Robot
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2015-07-11 02:00:35 UTC
  • mfrom: (10.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20150711020035-2nhpztq7s15qyc0v
Tags: 2.5.1-1
* New upstream release. (Closes: #789968)
* Update debian/control.
  - Update Standards-Version to 3.9.6.
* Add support mips64(el) and ppc64el. (Closes: #741508, #748146)
* Add patches/support-gcc-5.x.patch. (Closes: #777767)
  - Fix build with gcc-5.x.
* Add patches/Disable-NET0001.als.patch.
  - Disable test of NET0001.als.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
// - the copyright holder be liable for any  direct, indirect, incidental or -
12
12
// - special damages arising in any way out of the use of this software.     -
13
13
// ---------------------------------------------------------------------------
14
 
// - copyright (c) 1999-2012 amaury darsch                                   -
 
14
// - copyright (c) 1999-2015 amaury darsch                                   -
15
15
// ---------------------------------------------------------------------------
16
16
 
17
17
#ifndef  AFNIX_HTTPREQUEST_HPP
25
25
#include "HttpProto.hpp"
26
26
#endif
27
27
 
 
28
#ifndef  AFNIX_MULTIPART_HPP
 
29
#include "MultiPart.hpp"
 
30
#endif
 
31
 
28
32
namespace afnix {
29
33
 
30
34
  /// The HttpRequest class is a base class designed to handle a http
45
49
    String d_rmth;
46
50
    /// the request uri
47
51
    String d_ruri;
48
 
    /// the request query
49
 
    String d_rqry;
 
52
    /// the request buffer
 
53
    Buffer* p_rbuf;
50
54
 
51
55
  public:
52
56
    /// create a default request
78
82
    /// @param the object to copy
79
83
    HttpRequest (const HttpRequest& that);
80
84
 
 
85
    /// destroy this object
 
86
    ~HttpRequest (void);
 
87
 
81
88
    /// @return the class name
82
89
    String repr (void) const;
83
90
 
120
127
    /// @return the request query string
121
128
    virtual String getrqry (void) const;
122
129
 
 
130
    /// @return true if a cookie is set
 
131
    virtual bool iscookie (void) const;
 
132
 
 
133
    /// get a cookie string from the request
 
134
    virtual String getcookie (void) const;
 
135
 
 
136
    /// get the request buffer if any
 
137
    virtual Buffer* getrbuf (void) const;
 
138
 
 
139
    /// the multipart content if any
 
140
    virtual MultiPart* getmpart (void);
 
141
 
123
142
  public:
124
143
    /// create a new object in a generic object
125
144
    /// @param argv the argument vector