Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Allow requests to be post processed
- Remove all CORS stuff except for allowed methods returned by an OPTIONS query
- Loading branch information
Showing
7 changed files
with
44 additions
and
128 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
core/src/main/java/org/chodavarapu/datamill/http/PostProcessedRoute.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.chodavarapu.datamill.http; | ||
|
||
import rx.functions.Func1; | ||
|
||
/** | ||
* @author Ravi Chodavarapu (rchodava@gmail.com) | ||
*/ | ||
public interface PostProcessedRoute extends Route { | ||
Route andFinally(Func1<Response, Response> postProcessor); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
examples/starter/src/main/java/org/chodavarapu/datamill/examples/starter/Main.java
This file was deleted.
Oops, something went wrong.