HttpResponse

http.ql

Represents a single HTTP response.

Constructor Overview

Constructor Description
HttpResponse(statusCode, headers, body)

Creates a new HTTP response with the given status code, headers, and body.

Field Overview

Field Description
int statusCode

The status code of the response

Map headers

The headers of the response

string body

The body of the response

Constructors

HttpResponse(statusCode, headers, body) link

Creates a new HTTP response with the given status code, headers, and body.