"type qualifier on return type is meaningless"
// NP: we found the protocol version and consumed it already.
// just need the status code and reason phrase
-const int
+int
Http::One::ResponseParser::parseResponseStatusAndReason(::Parser::Tokenizer &tok, const CharacterSet &WspDelim)
{
if (!completedStatus_) {
* \retval 1 successful parse. statusCode_ and maybe reasonPhrase_ are filled and buffer consumed including first delimiter.
* \retval 0 more data is needed to complete the parse
*/
-const int
+int
Http::One::ResponseParser::parseResponseFirstLine()
{
::Parser::Tokenizer tok(buf_);
SBuf reasonPhrase() const { return reasonPhrase_;}
private:
- const int parseResponseFirstLine();
- const int parseResponseStatusAndReason(::Parser::Tokenizer&, const CharacterSet &);
+ int parseResponseFirstLine();
+ int parseResponseStatusAndReason(::Parser::Tokenizer&, const CharacterSet &);
/// magic prefix for identifying ICY response messages
static const SBuf IcyMagic;