Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snooze
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Setting up 2FA is now mandatory for all users.
Show more breadcrumbs
ehai
snooze
Commits
1ebe0c3c
Commit
1ebe0c3c
authored
9 years ago
by
João Távora
Browse files
Options
Downloads
Patches
Plain Diff
Improve docstrings of *CATCH-HTTP-CONDITIONS* and *CATCH-ERRORS*
parent
c61e1694
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api.lisp
+24
-22
24 additions, 22 deletions
api.lisp
with
24 additions
and
22 deletions
api.lisp
+
24
−
22
View file @
1ebe0c3c
...
...
@@ -25,43 +25,45 @@ RESOURCE is a symbol or a string designating a resource"
(
defparameter
*catch-http-conditions*
t
"If non-NIL, catch HTTP conditions and explain them to the client.
If T (the default,) this means that any conditions which are *not a
fault of the server* (thus excluding HTTP 500-class conditions) will
generate a response to the user-agent. To generate this response,
Snooze will first try EXPLAIN-CONDITION to \"politely\" explain the
condition in a format accepted by the user-agent, as indicated in the
\"Accept:\" header. the condition to the client. If that fails, the
If T (the default), any conditions which are *not a fault of the
server* (thus excluding HTTP 500-class conditions), will result in a
response to the user-agent.
To compose this response, Snooze will first try EXPLAIN-CONDITION to
\"politely\" explain the condition in a format accepted by the
user-agent, as indicated in the \"Accept:\" header. If that fails, the
condition is presented very succintly to the client.
If the value is the keyword :VERBOSE, don't call EXPLAIN-CONDITION and
present a plain-text explanation with a full Lisp backtrace indicating
where the condition originated. This option
s
is useful during
where the condition originated. This option is useful during
development.
If set to NIL
error
s will bubble up out of snooze and
possible land
you in the debugger. This option is useful during
development if you
prefer an interactive debugger."
)
If set to NIL
, HTTP condition
s will bubble up out of snooze and
possible land
you in the debugger. This option
also
is useful during
development if you
prefer an interactive debugger."
)
(
defparameter
*catch-errors*
t
"If non-NIL, catch any error and explain them to the client.
If T (the default,) this means that *any* erroneous conditions that
are a *fault of the server and not of the user-agent* (and this
includes HTTP 500-class conditions) will generate a response to the
user-agent. To generate this response, Snooze will first try
EXPLAIN-CONDITION to \"politely\" explain the condition in a format
accepted by the user-agent, as indicated in the \"Accept:\"
header. the condition to the client. If that fails, the error is
presented very succintly to the client.
If T (the default), *any* erroneous conditions that are a *fault of
the server and not of the user-agent*, including errors *and* HTTP
500-class conditions voluntarily signalled by the program logic, will
still result in a response to the user-agent.
To compose this response, Snooze will first try EXPLAIN-CONDITION to
\"politely\" explain the condition in a format accepted by the
user-agent, as indicated in the \"Accept:\" header. If that fails, the
error is presented very succintly to the client.
If the value is the keyword :VERBOSE, don't call EXPLAIN-CONDITION and
offer a plain text explanation with a full Lisp backtrace indicating
where the condition originated. This option
s
is useful during
where the condition originated. This option is useful during
development.
If set to NIL errors will bubble up out of snooze and possible land
you in the debugger. This option is useful during development if
you
prefer an interactive debugger"
)
If set to NIL
,
errors will bubble up out of snooze and possible land
you in the debugger. This option is
also
useful during development if
you
prefer an interactive debugger"
)
(
defvar
*resource-filter*
(
constantly
t
)
"Tell if a resource should be considered when handling requests.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment