Function body

Synopsis

#include <lib/inc/drogon/HttpRequest.h>

string_view body() const

Description

Get the content string of the request, which is the body part of the request.

Source

Lines 181-184 in lib/inc/drogon/HttpRequest.h.

string_view body() const
{
    return string_view(bodyData(), bodyLength());
}





Add Discussion as Guest

Log in