Some use-cases require ReceivedResponseInterceptor to have access to RequestData.
One example is properly handling CORS preflight requests from within Charon, which requires access to the request's method and headers.
This PR adds a reference to RequestData in ResponseData, allowing ReceivedResponseInterceptor to access it.
Coverage increased (+1.5%) to 93.639% when pulling 39b73f2e89fa2b2ced390b974742e23c3ec98b8e on malinges:master into 3380307d1521493ba1269189cd5a5a83909b6b57 on mkopylec:master.
Some use-cases require
ReceivedResponseInterceptor
to have access toRequestData
. One example is properly handling CORS preflight requests from within Charon, which requires access to the request's method and headers. This PR adds a reference toRequestData
inResponseData
, allowingReceivedResponseInterceptor
to access it.