Mercurial > archived > louis > epitech > zia-api
view include/http/IRequest.hpp @ 49:1e63e52573a0
Fix typo
author | daedric <d43dr1c@gmail.com> |
---|---|
date | Tue, 23 Mar 2010 10:33:57 +0100 |
parents | dad671a5f028 |
children | e16869cd9773 |
line wrap: on
line source
#ifndef __ZIA_API_REQUEST_HPP__ # define __ZIA_API_REQUEST_HPP__ # include <string> # include "http/IHeader.hpp" namespace zia { namespace api { namespace http { /** * @brief Interface to represent the request received. * * @see IHeader * @see IResponse */ class IRequest { public: virtual ~IRequest(void) { } /** * @brief Get method used. * * @return The name of the method. */ virtual const std::string & getMethod(void) const = 0; virtual void setMethod(const std::string &) = 0; /** * @brief Get the uri requested. * * @return The URI. */ virtual const std::string & getUri(void) const = 0; /** * @brief Set the uri requested. * * @param [in] uri The new uri. */ virtual void setUri(const std::string & uri) = 0; /** * @brief Get the HTTP version. * * It has to be like: '1.1', '1.0' ... */ virtual const std::string & getVersion(void) const = 0; /** * @brief Set the HTTP version. * * @param [in] v The HTTP version to set. It has to be like: * 'X.X' where X is a digit. */ virtual void setVersion(const std::string & v) = 0; /** * @brief Get HTTP headers. * * @return The HTTP headers. * * @see IHeader */ virtual const IHeader & getHeaders(void) const = 0; /** * @brief Get HTTP headers. * * @return the HTTP headers. * * @see IHeader */ virtual IHeader & getHeaders(void) = 0; }; }; }; }; #endif /* ! __ZIA_API_REQUEST_HPP__ */