HTTP Server.

Logically -1 doesn’t mean anything. kSomeLogicalName is much better

> On Nov 20, 2014, at 20:41, Dima <notifications@github.com> wrote:
> 
> In posix_http_server.h:
> 
> > +typedef std::vector<std::pair<std::string, std::string>> HTTPHeadersType;
> > +
> > +const char* const kDefaultContentType = "text/plain";
> > +
> > +class HTTPHeaderParser {
> > + public:
> > +  const std::string& Method() const {
> > +    return method_;
> > +  }
> > +
> > +  const std::string& URL() const {
> > +    return url_;
> > +  }
> > +
> > +  const bool HasBody() const {
> > +    return content_offset_ != static_cast<size_t>(-1) && content_length_ != static_cast<size_t>(-1);
> я б забил, строки не очень длинные.
> 
> —
> Reply to this email directly or view it on GitHub <https://github.com/dkorolev/cpp_native_http_server/pull/2/files#r20700710>.
>