| Parameter |
Default value |
Role |
| GreasySpoon.servicename |
greasyspoon |
Service name displayed in log files (usefull when running multiple services) |
| GreasySpoon.mimesupported |
html xml txt css javascript
|
List of mime types handled by GreasySpoon, separated by space char. Responses will be processed if mime type provided by the server in the Content-Type header contains one of the given string. |
| GreasySpoon.mimemagic |
on |
Enable/disable use of mime magic to detect mime type. If enabled, use magic bytes to detect mime type, and discard responses that are not declared as supported in GreasySpoon.mimesupported list.
Note: responses that cannot be detected as "textual-like" content (binary files, unknown files, ...) are automatically discarded. |
| GreasySpoon.reqtag |
.req.server. |
tag added to GS requests scripts |
| GreasySpoon.resptag |
.resp.server. |
tag added to GS response scripts |
| GreasySpoon.comments |
comments.properties
|
File containing comments format for the supported scripts languages |
| GreasySpoon.compress |
on
|
Set if GreasySpoon must try to compress content if browser supports it (otherwise, only compress content that was initially compressed by servers) |
| SpoonScript.reqheadparam |
requestheader
|
Name of the variable provided to scripts and containing request header |
| SpoonScript.reqbodyparam |
httprequest |
Name of the variable provided to scripts and containing request body |
| poonScript.repheadparam |
responseheader
|
Name of the variable provided to scripts and containing response header |
| SpoonScript.respbodyparam |
httpresponse |
Name of the variable provided to scripts and containing response body |
| SpoonScript.cacheparam |
sharedcache
|
Name of the hash table provided to scripts |
| SpoonScript.usergroupparam |
user_group
|
Name of the variable provided to scripts and containing user group value |
| SpoonScript.useridparam |
user_id |
Name of the variable provided to scripts and containing user ID value |
| SpoonScript.icapuserheader |
x-authenticated-user
|
Defines either ICAP or HTTP header (in lowercase) used to extract user ID value that will be provided to scripts.
By default, try to extract user ID from ICAP x-authenticated-user header. |
| SpoonScript.userfallbackheader |
x-client-ip
|
If icapuserheader cannot be determined, defines a fall back header (either ICAP of HTTP) as user ID.
By default, fall back to ICAP x-client-ip header. |
| SpoonScript.icapgroupheader |
x-authenticated-groups |
Defines either ICAP or HTTP header (in lowercase) used to extract user group value that will be provided to scripts.
By default, try to extract user ID from ICAP x-authenticated-group header. |
| SpoonScript.groupfallbackheader |
user-agent
|
If icapgroupheader cannot be determined, defines a fall back header (either ICAP of HTTP) as user Group.
By default, fall back to HTTP user-agent header. |
| SpoonScript.reqfilecomment |
... |
header that will be prepend when creating new request scripts |
| SpoonScript.respfilecomment |
... |
header that will be prepend when creating new response scripts |