Skip to content

Commit fcca741

Browse files
Merge pull request #20 from jstourac/addLongNameAttribute
Add long name attribute
2 parents ba171af + ed61a4c commit fcca741

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/main/asciidoc/bootstrapping.asciidoc

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ The builder API is accessed using the `io.undertow.Undertow` class. We will star
2121

2222
[source%nowrap,java]
2323
----
24+
import io.undertow.Undertow;
25+
import io.undertow.server.HttpHandler;
26+
import io.undertow.server.HttpServerExchange;
27+
import io.undertow.util.Headers;
28+
2429
public class HelloWorldServer {
2530
2631
public static void main(final String[] args) {

src/main/asciidoc/predicates-attributes-handlers.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ attributes provided by Undertow is below:
141141
|Local IP address | `%A` | `%{LOCAL_IP}`
142142
|Bytes sent, excluding HTTP headers, or '-' if no bytes were sent | `%b` |
143143
|Bytes sent, excluding HTTP headers | `%B` | `%{BYTES_SENT}`
144-
|Remote host name | `%h` |
144+
|Remote host name | `%h` | `%{REMOTE_HOST}`
145145
|Request protocol | `%H` | `%{PROTOCOL}`
146146
|Remote logical username from identd (always returns '-') | `%l` |
147147
|Request method | `%m` | `%{METHOD}`
@@ -156,6 +156,8 @@ attributes provided by Undertow is below:
156156
|Local server name | `%v` | `%{LOCAL_SERVER_NAME}`
157157
|Time taken to process the request, in millis | `%D` | `%{RESPONSE_TIME}`
158158
|Time taken to process the request, in seconds | `%T` |
159+
|Time taken to process the request, in micros | | `%{RESPONSE_TIME_MICROS}`
160+
|Time taken to process the request, in nanos | | `%{RESPONSE_TIME_NANOS}`
159161
|Current request thread name | `%I` | `%{THREAD_NAME}`
160162
|SSL cypher | | `%{SSL_CIPHER}`
161163
|SSL client certificate | | `%{SSL_CLIENT_CERT}`

src/main/asciidoc/undertow-handler-guide.asciidoc

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ Lets start with a simple example:
1010

1111
[source%nowrap,java]
1212
----
13+
import io.undertow.Undertow;
14+
import io.undertow.server.HttpHandler;
15+
import io.undertow.server.HttpServerExchange;
16+
import io.undertow.util.Headers;
17+
1318
public class HelloWorldServer {
1419
1520
public static void main(final String[] args) {

0 commit comments

Comments
 (0)