Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You mean something like this?</p> <pre><code>Get["/test"] = _ =&gt; { var responseThing = new { this.Request.Headers, this.Request.Query, this.Request.Form, this.Request.Session, this.Request.Method, this.Request.Url, this.Request.Path }; return Response.AsJson(responseThing); }; </code></pre> <p>This would give you an output like:</p> <pre><code>{ "Form":{ }, "Headers":[ { "Key":"Cache-Control", "Value":[ "max-age=0" ] }, { "Key":"Connection", "Value":[ "keep-alive" ] }, { "Key":"Accept", "Value":[ "text/html;q=1", "application/xhtml+xml;q=1", "application/xml;q=0.9", "*/*;q=0.8" ] }, { "Key":"Accept-Encoding", "Value":[ "gzip,deflate,sdch" ] }, { "Key":"Accept-Language", "Value":[ "en-US,en;q=0.8" ] }, { "Key":"Host", "Value":[ "localhost:2234" ] }, { "Key":"User-Agent", "Value":[ "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.29 Safari/537.36" ] } ], "Method":"GET", "Path":"/test", "Query":{ "23423":"fweew" }, "Session":[ ], "Url":{ "BasePath":null, "Fragment":"", "HostName":"localhost:2234", "IsSecure":false, "Path":"/test", "Port":null, "Query":"23423=fweew", "Scheme":"http", "SiteBase":"http://localhost:2234" } } </code></pre> <p>You can also get the Owin Environment Variables as described in the wiki here</p> <p><a href="https://github.com/NancyFx/Nancy/wiki/Hosting-nancy-with-owin#accessing-owin-environment-variables" rel="noreferrer">https://github.com/NancyFx/Nancy/wiki/Hosting-nancy-with-owin#accessing-owin-environment-variables</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload