-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better Delta support to automatically handle HTML in applications whe…
…n deltas are assigned Added support to ProxyCache to create a Delta for processing script, img, and link tags to update to use caching Fixes to Server.handle to avoid potential for exceptions not getting handled in certain circumstances
- Loading branch information
1 parent
6b084fc
commit b9d49f2
Showing
8 changed files
with
74 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ node_modules/ | |
npm-debug.log | ||
*.js | ||
*.js.map | ||
package-lock.json | ||
package-lock.json | ||
temp/ |
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 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
8 changes: 2 additions & 6 deletions
8
server/src/main/scala/io/youi/server/handler/ContentHandler.scala
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 |
---|---|---|
@@ -1,13 +1,9 @@ | ||
package io.youi.server.handler | ||
|
||
import io.youi.http.{Content, HttpConnection, HttpStatus} | ||
import io.youi.server.dsl | ||
|
||
case class ContentHandler(content: Content, status: HttpStatus) extends HttpHandler { | ||
override def handle(connection: HttpConnection): Unit = { | ||
connection.update { response => | ||
response.copy(status = status, content = Some(content)) | ||
} | ||
dsl.processDeltas(connection) | ||
override def handle(connection: HttpConnection): Unit = connection.update { response => | ||
response.copy(status = status, content = Some(content)) | ||
} | ||
} |
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