clear_response_headers

Attribute Macro clear_response_headers 

Source
#[clear_response_headers]
Expand description

Clears all response headers.

This attribute macro clears all response headers from the response.

ยงUsage

use hyperlane::*;
use hyperlane_macros::*;

#[clear_response_headers]
async fn clear_headers(ctx: Context) {
    // Clear all response headers
}

The macro should be applied to async functions that accept a Context parameter.