logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

request-body - (request-data)

Description

request-body stores the request body of an HTTP request into string <request body>. If the content type of the request is "multipart/form-data", the request body is empty because all the data (including any attached files) can be obtained by using get-param (see file-uploading for files). In all other cases, request body is available. Typical use of request-body is when some text or binary information is attached to the request, such as JSON for example, though it can be anything else, for example an image, some text, or a PDF document. Usually request body is present for POST, PUT or PATCH requests, but you can also obtain it for GET or DELETE requests, if supplied (for instance identifying a resource may require more information than can fit in a query string), or for any custom request method.

Examples

String variable "reqb" will hold request body of a request: request-body reqb

Name

request-body - (request-data)

Purpose

Get the body of an HTTP request.

See Also

Request data get-paramrequest-bodyset-param See all documentation $DATE $VERSION GOLF(2gg)

Syntax

request-body <request body>

See Also