HTTP Response ![code/datums/http.dm 154](git.png)
Holder datum for HTTP responses
Created from calling [/datum/http_request/proc/into_response()] Contains vars about the result of the response
Vars | |
body | The body of the response from the server |
---|---|
error | Raw response if we errored |
errored | Has the request errored |
headers | Associative list of headers sent from the server |
status_code | The HTTP status code of the response |
Var Details
body ![code/datums/http.dm 158](git.png)
The body of the response from the server
error ![code/datums/input_data.dm 1](git.png)
Raw response if we errored
errored ![code/datums/http.dm 162](git.png)
Has the request errored
headers ![code/datums/http.dm 160](git.png)
Associative list of headers sent from the server
status_code ![code/datums/http.dm 156](git.png)
The HTTP status code of the response