2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#include "express/Request.h"
22#include "web/http/server/Request.h"
24#ifndef DOXYGEN_SHOULD_SKIP_THIS
26#include "web/http/http_utils.h"
49 return params.contains(id) ? params[id] : fallBack;
54 url = httputils::url_decode(httputils::str_split_last(originalUrl,
'?').first);
55 path = httputils::str_split_last(url,
'/').first;
57 path = std::string(
"/");
64 return requestBase->get(key, i);
68 const std::map<std::string, std::string>::const_iterator it = cookies.find(key);
70 if (it != cookies.end()) {
78 const std::map<std::string, std::string>::const_iterator it = queries.find(key);
80 if (it != queries.end()) {
const std::string & cookie(const std::string &key) const
const std::string & get(const std::string &key, int i=0) const
Request(const std::shared_ptr< web::http::server::Request > &request) noexcept
const std::string & query(const std::string &key) const
const std::string & param(const std::string &id, const std::string &fallBack="")