Skip to content

Add Cask tutorials #3056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes
  • Loading branch information
gkepka committed Aug 26, 2024
commit 7d388d544aa7b95975f896b543a3d86087824129
2 changes: 1 addition & 1 deletion _overviews/toolkit/web-server-cookies-and-decorators.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: How to use cookies and decorators?
type: section
description: Using cookies and decorators with Cask
num: 36
previous-page: web-server-query-websockets
previous-page: web-server-websockets
next-page:
---

Expand Down
6 changes: 3 additions & 3 deletions _overviews/toolkit/web-server-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ with names corresponding to names of fields in the form and set the form method
object MyApp extends cask.MainRoutes {

@cask.get("/form")
def getForm(): String = {
def getForm(): cask.Response = {
val html =
"""<!doctype html>
|<html>
Expand Down Expand Up @@ -51,7 +51,7 @@ object MyApp extends cask.MainRoutes {
object MyApp extends cask.MainRoutes:

@cask.get("/form")
def getForm(): String =
def getForm(): cask.Response =
val html =
"""<!doctype html>
|<html>
Expand Down Expand Up @@ -163,7 +163,7 @@ object MyApp extends cask.MainRoutes:
{% endtab %}
{% endtabs %}

In this example the JSON is merely converted to `String`, check the [*uPickle tutorial*](/toolkit/json-introduction.html) for more information
In this example the JSON is merely converted to `String`, check the [*uPickle tutorial*](/toolkit/json-intro.html) for more information
on what can be done with `ujson.Value` type.

Send a POST request.
Expand Down