// the filter copies the path parameter 'echo' to the 'X-Echo' header func (f *setEchoHeader) Request(ctx filters.FilterContext) { ctx.Request().Header.Set("X-Echo", ctx.PathParam("echo")) }