Public Member Functions | Friends

atscppapi::Request Class Reference

Encapsulates a request. More...

#include <Request.h>

Inherits atscppapi::noncopyable.

Inherited by atscppapi::ClientRequest.

Collaboration diagram for atscppapi::Request:
Collaboration graph
[legend]

Public Member Functions

 Request ()
 Request (const std::string &url, HttpMethod method=HTTP_METHOD_GET, HttpVersion version=HTTP_VERSION_1_1)
 Constructed with an initial URL.
HttpMethod getMethod () const
UrlgetUrl ()
HttpVersion getVersion () const
HeadersgetHeaders () const
 ~Request ()

Friends

class Transaction
class ClientRequest

Detailed Description

Encapsulates a request.

Definition at line 40 of file Request.h.


Constructor & Destructor Documentation

atscppapi::Request::Request (  ) 
atscppapi::Request::Request ( const std::string &  url,
HttpMethod  method = HTTP_METHOD_GET,
HttpVersion  version = HTTP_VERSION_1_1 
)

Constructed with an initial URL.

atscppapi::Request::~Request (  ) 

Member Function Documentation

Headers& atscppapi::Request::getHeaders (  )  const
Returns:
Headers of the request
HttpMethod atscppapi::Request::getMethod (  )  const
Returns:
HTTP method of the request
Url& atscppapi::Request::getUrl (  ) 
Returns:
URL of the request
HttpVersion atscppapi::Request::getVersion (  )  const
Returns:
HTTP version of the request

Friends And Related Function Documentation

friend class ClientRequest [friend]

Definition at line 67 of file Request.h.

friend class Transaction [friend]

Definition at line 66 of file Request.h.


The documentation for this class was generated from the following file: