service/endpoint_test: storing request so it is possible to access header