Files
Paradise/datum/http_response.html

3 lines
3.4 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/http_response - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a><a href="datum/http_response.html#var">Var Details</a></header><main><h1>HTTP Response <aside>/<a href="datum.html">datum</a>/<a href="datum/http_response.html">http_response</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/http.dm#L118"><img src="git.png" width="16" height="16" title="code/datums/http.dm 118"></a></h1><p>Holder datum for HTTP responses</p>
<p>Created from calling [/datum/http_request/proc/into_response()]
Contains vars about the result of the response</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/http_response.html#var/body">body</a></th><td>The body of the response from the server</td></tr><tr><th><a href="datum/http_response.html#var/error">error</a></th><td>Raw response if we errored</td></tr><tr><th><a href="datum/http_response.html#var/errored">errored</a></th><td>Has the request errored</td></tr><tr><th><a href="datum/http_response.html#var/headers">headers</a></th><td>Associative list of headers sent from the server</td></tr><tr><th><a href="datum/http_response.html#var/status_code">status_code</a></th><td>The HTTP status code of the response</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/body"><aside class="declaration">var </aside>body <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/http.dm#L122"><img src="git.png" width="16" height="16" title="code/datums/http.dm 122"></a></h3><p>The body of the response from the server</p><h3 id="var/error"><aside class="declaration">var </aside>error <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/http.dm#L128"><img src="git.png" width="16" height="16" title="code/datums/http.dm 128"></a></h3><p>Raw response if we errored</p><h3 id="var/errored"><aside class="declaration">var </aside>errored <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/http.dm#L126"><img src="git.png" width="16" height="16" title="code/datums/http.dm 126"></a></h3><p>Has the request errored</p><h3 id="var/headers"><aside class="declaration">var </aside>headers <aside> /list</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/http.dm#L124"><img src="git.png" width="16" height="16" title="code/datums/http.dm 124"></a></h3><p>Associative list of headers sent from the server</p><h3 id="var/status_code"><aside class="declaration">var </aside>status_code <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/http.dm#L120"><img src="git.png" width="16" height="16" title="code/datums/http.dm 120"></a></h3><p>The HTTP status code of the response</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/8a8a00a2a9bec485351e5f219982b7315d3504fa">8a8a00a</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html>