title: C# getting HTTP body using Nancy
body: <p>quick question. I'm using Nancy to convert REST calls to api calls in a project I'm working on. I can't quite get it to work.</p>
  
  <p>I've got Nancy setup and working, for GET requests it's fine. However when I make a POST request using the built in RestClient, like:</p>
  
  <pre><code>            restClient.Post("/test", "Param");
  </code></pre>
  
  <p>I can't figure out how to get "Param" out once the call has been made.</p>
  
  <p>I have the NancyModule setup as such:</p>
  
  <pre><code>public class TestNancyModule : NancyModule {
      public TestNancyModule() {
          Post["/test"] = p =&gt; {
              for(KeyValuePair&lt;dynamic, dynamic&gt; kvp in (DynamicDictionary)p)
                  Console.WriteLine("{0}:{1}", kvp.Key, kvp.Value);
          }
      }
  }
  </code></pre>
  
  <p>I have a breakpoint setup inside the NancyModule, which is getting hit when I make a post request to localhost/test, but I can't for the life of me figure out how to extract "Param" out once I'm inside the Nancy module. Ideally I'd be able to just do something like   </p>
  
  <pre><code>    string POSTParameters = p["Value"]
      //POSTParameters now equals "Param"
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>
  
  <p>Edit: I'm leaving the original post up, but I'll clarify here. I was meaning to ask how to access the HTTP body of incoming requests. Unfamiliarity with the protocol led to some errors on my part using the wrong terminology.</p>