From the code
element:
The code element represents a fragment of computer code. This could be an XML element name, a filename, a computer program, or any other string that a computer would recognize.
So <code>
is the right element to represent an HTTP method (since that is a "string that a computer would recognize). You can even add a class.
<code class="http"><code class="method">GET</code> <code class="Request-URI URI">/</code> <code class="version">HTTP/1.1</code></code>