## Struct request

zeep::http::request

## Synopsis

    // In header: </home/maarten/projects/libzeep/zeep/http/request.hpp>

    struct request {

      // public member functions
      float accept(const char *) const;
      bool is_mobile() const;

      // public data members
      std::string method;  // POST or GET.
      std::string uri;  // The uri as requested.
      int http_version_major;  // HTTP major number (usually 1)
      int http_version_minor;  // HTTP major number (0 or 1)
      std::vector< header > headers;  // A list with zeep::http::header values.
      std::string payload;  // For POST requests.
      bool close;  // Whether 'Connection: close' was specified.
      std::string local_address;  // The address the request was received upon.
      unsigned short local_port;  // The port number the request was received upon.
    };

## Description

request contains the parsed original HTTP request as received by the server.

### `request` public member functions

1.     float accept(const char * type) const;

   Return the value in the Accept header for type.

2.     bool is_mobile() const;

   Check HTTP_USER_AGENT to see if it is a mobile client.