BoltRequest">BoltRequest</a></span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def to_copyable(self) -&gt; &#34;BoltRequest&#34;:
    body: Union[str, dict] = self.raw_body if self.mode == &#34;http&#34; else self.body
    return BoltRequest(
        body=body,
        query=self.query,
        headers=self.headers,
        context=self.context.to_copyable(),
        mode=self.mode,
    )</code></pre>
</details>
<div class="desc"