| 128 | } |
| 129 | |
| 130 | void HttpServletRequest::setCookie(const char* name, const char* value) |
| 131 | { |
| 132 | if (name == NULL || *name == 0 || value == NULL) { |
| 133 | return; |
| 134 | } |
| 135 | HttpCookie* cookie = dbuf_->create<HttpCookie, const char*, |
| 136 | const char*, dbuf_guard*> (name, value, dbuf_); |
| 137 | cookies_.push_back(cookie); |
| 138 | } |
| 139 | |
| 140 | const std::vector<HttpCookie*>& HttpServletRequest::getCookies(void) const |
| 141 | { |