all repos — NoPaste @ 12495971e4a060e3d678b16f8484eaf731a67f91

Resurrected - The PussTheCat.org fork of NoPaste

scripts/CodeMirror/mode/http/index.html (view raw)

 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>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
11<div id=nav>
12  <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></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">
30POST /somewhere HTTP/1.1
31Host: example.com
32If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
33Content-Type: application/x-www-form-urlencoded;
34	charset=utf-8
35User-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
37This 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>