--- title: "HX-Reswap" description: "Override the swap style from the server" --- The `HX-Reswap` response header overrides the swap style used when inserting the response, replacing whatever `hx-swap` was set on the triggering element. ## Syntax ```http HX-Reswap: outerHTML ``` Accepts the same values as [`hx-swap`](/reference/attributes/hx-swap), including modifiers. ## Example Force an outer replacement regardless of what the element specified: ```python return Response( content, headers={'HX-Reswap': 'outerHTML'} ) ``` With modifiers: ```http HX-Reswap: innerHTML transition:true ``` ## Notes - Overrides `hx-swap` on the source element - Evaluated after the response is received, before swapping See also: [`hx-swap`](/reference/attributes/hx-swap), [`HX-Retarget`](/reference/headers/HX-Retarget)