or</span><span class="p">:</span> <span class="kt">RequestInterceptor</span> <span class="p">{</span>

<span class="kd">func</span> <span class="nf">intercept</span><span class="p">(</span><span class="nv">resource</span><span class="p">:</span> <span class="kt">NetworkResource</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">NetworkResource</span> <span class="p">{</span>

    <span class="c1">// Cast the NetworkResource into the more specialized type NetworkResourceWithBody</sp