Skip to content
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

Updated readme with information about passing in ring handlers #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Note: boot-http will automatically wrap responses in middlewares to
add content type and charset (see `--charset` option) to response
headers.

Note: The handler symbol must include a fully qualified namespace as shown in
the example above (due to a limitation in boot). If the task is throwing
java.lang.NullPointerException's this is most likely the cause.

### Composability

You may have noticed the `wait` task being used after all the
Expand Down Expand Up @@ -142,6 +146,9 @@ are not found.
boot serve -d target -N myapp.server/custom-not-found wait
```

Note: Just like the ring handler, the not-found handler also requires a symbol
with a fully qualified namespace, even if invoked from a build.boot file.

#### -S / --charset

Charset to use when serving resources or files. Defaults to UTF-8.
Expand Down