| Home | Libraries | People | FAQ | More

###### http::parser::skip (2 of 2 overloads)

(Inherited from `http::basic_parser`)

Set the skip parse option.

<h7> Synopsis </h7>

    void
    skip(
        bool v);

<h7> Description </h7>

This option controls whether or not the parser expects to see an HTTP body, regardless of the presence or absence of certain fields such as Content-Length or a chunked Transfer-Encoding. Depending on the request, some responses do not carry a body. For example, a 200 response to a CONNECT request from a tunneling proxy, or a response to a HEAD request. In these cases, callers may use this function inform the parser that no body is expected. The parser will consider the message complete after the header has been received.

<h7> Parameters </h7>

Name | Description
--- | ---
`v` | `true` to set the skip body option or `false` to disable it.

<h7> Remarks </h7>

This function must called before any bytes are processed.