Skip to content

Commit

Permalink
Indicate proxy interfaces are Functional Interfaces (#16)
Browse files Browse the repository at this point in the history
* Update RequestInterceptor.java

Add @FunctionalInterface in interceptor definition to give user indication of using lambdas in most IDEs

* Update ResponseInterceptor.java

Add @FunctionalInterface in interceptor definition to give user indication of using lambdas in most IDEs
  • Loading branch information
hello-kunal committed Jun 26, 2023
1 parent 63bf3ae commit ea4cd14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*
* @author Tamas Kohegyi
*/
@FunctionalInterface
public interface RequestInterceptor {
void process(MitmJavaProxyHttpRequest request);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*
* @author Tamas Kohegyi
*/
@FunctionalInterface
public interface ResponseInterceptor {
void process(MitmJavaProxyHttpResponse response);
}

0 comments on commit ea4cd14

Please sign in to comment.