x-web.4.5.4.source-code.enums.adoc Maven / Gradle / Ivy
= Enums
[[AllowForwardHeaders]]
== AllowForwardHeaders
++++
What kind of forward header parsing are we allowing.
++++
'''
[cols=">25%,75%"]
[frame="topbot"]
|===
^|Name | Description
|[[NONE]]`NONE`|+++
No parsing shall be performed.
+++
|[[FORWARD]]`FORWARD`|+++
Only process the standard Forward
header as defined by https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded
+++
|[[X_FORWARD]]`X_FORWARD`|+++
Only process the non standard but widely used X-Forward-*
headers.
These headers are not official standards but widely used. Users are advised to avoid them for new applications.
+++
|[[ALL]]`ALL`|+++
Will process both and . Be aware that mixing the 2 headers can open
security holes has specially crafted requests that are not validated as proxy level can allow bypassing
the proxy desired forward value.
For example, a proxy will add the X-Forward-*
headers to a request but not filter out if the original
request includes the Forward
header.
+++
|===
[[LoggerFormat]]
== LoggerFormat
++++
The possible out of the box formats.
++++
'''
[cols=">25%,75%"]
[frame="topbot"]
|===
^|Name | Description
|[[DEFAULT]]`DEFAULT`|+++
remote-client - - [timestamp] "method uri version" status content-length "referrer" "user-agent"
+++
|[[SHORT]]`SHORT`|+++
remote-client - method uri version status content-length duration ms
+++
|[[TINY]]`TINY`|+++
method uri status - content-length duration
+++
|[[CUSTOM]]`CUSTOM`|+++
Will use user defined formatter function.
+++
|===
[[Transport]]
== Transport
++++
The available SockJS transports
++++
'''
[cols=">25%,75%"]
[frame="topbot"]
|===
^|Name | Description
|[[WEBSOCKET]]`WEBSOCKET`|+++
rfc 6455
+++
|[[EVENT_SOURCE]]`EVENT_SOURCE`|+++
Event source
+++
|[[HTML_FILE]]`HTML_FILE`|+++
HtmlFile.
+++
|[[JSON_P]]`JSON_P`|+++
Slow and old fashioned JSONP polling.
This transport will show "busy indicator" (aka: "spinning wheel") when sending data.
+++
|[[XHR]]`XHR`|+++
Long-polling using cross domain XHR
+++
|===