HTTP Response ![code/datums/http.dm 149](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 153](git.png)
The body of the response from the server
error ![code/datums/hud.dm 1](git.png)
Raw response if we errored
errored ![code/datums/http.dm 157](git.png)
Has the request errored
headers ![code/datums/http.dm 155](git.png)
Associative list of headers sent from the server
status_code ![code/datums/http.dm 151](git.png)
The HTTP status code of the response