Skip to content

Commit

Permalink
update some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alterationx10 committed Nov 3, 2024
1 parent 2d64258 commit 3c7dc55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/src/spider/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Here is an example:

case class EchoGetter(msg: String) extends RequestHandler[Unit, String] {
override def handle(request: Request[Unit]): Response[String] = {
Response(Map.empty, msg)
Response(msg)
}
}

Expand Down Expand Up @@ -98,15 +98,15 @@ object HttpAppExample extends HttpApp {

case class GreeterGetter() extends RequestHandler[Unit, String] {
override def handle(request: Request[Unit]): Response[String] = {
Response(Map.empty, "Aloha")
Response("Aloha")
}
}

val alohaGreeter = GreeterGetter()

case class EchoGetter(msg: String) extends RequestHandler[Unit, String] {
override def handle(request: Request[Unit]): Response[String] = {
Response(Map.empty, msg)
Response(msg)
}
}

Expand Down

0 comments on commit 3c7dc55

Please sign in to comment.