openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

index.html (1393B)


      1 <!doctype html>
      2 
      3 <title>CodeMirror: HTTP mode</title>
      4 <meta charset="utf-8"/>
      5 <link rel=stylesheet href="../../doc/docs.css">
      6 
      7 <link rel="stylesheet" href="../../lib/codemirror.css">
      8 <script src="../../lib/codemirror.js"></script>
      9 <script src="http.js"></script>
     10 <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
     11 <div id=nav>
     12   <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
     13 
     14   <ul>
     15     <li><a href="../../index.html">Home</a>
     16     <li><a href="../../doc/manual.html">Manual</a>
     17     <li><a href="https://github.com/codemirror/codemirror">Code</a>
     18   </ul>
     19   <ul>
     20     <li><a href="../index.html">Language modes</a>
     21     <li><a class=active href="#">HTTP</a>
     22   </ul>
     23 </div>
     24 
     25 <article>
     26 <h2>HTTP mode</h2>
     27 
     28 
     29 <div><textarea id="code" name="code">
     30 POST /somewhere HTTP/1.1
     31 Host: example.com
     32 If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
     33 Content-Type: application/x-www-form-urlencoded;
     34 	charset=utf-8
     35 User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
     36 
     37 This is the request body!
     38 </textarea></div>
     39 
     40     <script>
     41       var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
     42     </script>
     43 
     44     <p><strong>MIME types defined:</strong> <code>message/http</code>.</p>
     45   </article>