Skip to content

Commit 07ca539

Browse files
committed
feat(Interceptors): Add request to onHyperResponse interception point.
This was available already by calling `response.getRequest()`, but now it's more available and visible.
1 parent 3461549 commit 07ca539

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

models/HyperRequest.cfc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,13 @@ component accessors="true" {
10881088
for ( var callback in variables.responseCallbacks ) {
10891089
callback( res );
10901090
}
1091-
variables.interceptorService.processState( "onHyperResponse", { "response" : res } );
1091+
variables.interceptorService.processState(
1092+
"onHyperResponse",
1093+
{
1094+
"response" : res,
1095+
"request" : res.getRequest()
1096+
}
1097+
);
10921098

10931099
if (
10941100
variables.currentRequestCount <= variables.retries.len() &&

0 commit comments

Comments
 (0)