-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2619a09
commit 1018463
Showing
18 changed files
with
640 additions
and
554 deletions.
There are no files selected for viewing
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
336 changes: 0 additions & 336 deletions
336
src/main/java/com/blade/mvc/handler/RequestExecution.java
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
package com.blade.mvc.http; | ||
|
||
public interface Body { | ||
|
||
<T> T write(BodyWriter<T> writer); | ||
|
||
} |
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,15 @@ | ||
package com.blade.mvc.http; | ||
|
||
public interface BodyWriter<T> { | ||
|
||
T onText(StringBody body); | ||
|
||
T onStream(StreamBody body); | ||
|
||
T onView(ViewBody body); | ||
|
||
T onEmpty(EmptyBody emptyBody); | ||
|
||
T onRawBody(RawBody body); | ||
|
||
} |
Oops, something went wrong.