本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3KB

  1. <!doctype html>
  2. <title>CodeMirror: HTTP mode</title>
  3. <meta charset="utf-8"/>
  4. <link rel=stylesheet href="../../doc/docs.css">
  5. <link rel="stylesheet" href="../../lib/codemirror.css">
  6. <script src="../../lib/codemirror.js"></script>
  7. <script src="http.js"></script>
  8. <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
  9. <div id=nav>
  10. <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
  11. <ul>
  12. <li><a href="../../index.html">Home</a>
  13. <li><a href="../../doc/manual.html">Manual</a>
  14. <li><a href="https://github.com/codemirror/codemirror">Code</a>
  15. </ul>
  16. <ul>
  17. <li><a href="../index.html">Language modes</a>
  18. <li><a class=active href="#">HTTP</a>
  19. </ul>
  20. </div>
  21. <article>
  22. <h2>HTTP mode</h2>
  23. <div><textarea id="code" name="code">
  24. POST /somewhere HTTP/1.1
  25. Host: example.com
  26. If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
  27. Content-Type: application/x-www-form-urlencoded;
  28. charset=utf-8
  29. 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
  30. This is the request body!
  31. </textarea></div>
  32. <script>
  33. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
  34. </script>
  35. <p><strong>MIME types defined:</strong> <code>message/http</code>.</p>
  36. </article>
上海开阖软件有限公司 沪ICP备12045867号-1