Skip to content

Commit bd015c1

Browse files
camilledalmerasjeapostrophe
authored andcommitted
Update dispatchers.scrbl
1 parent 1b41152 commit bd015c1

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

web-server-doc/web-server/scribblings/dispatchers.scrbl

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,22 @@ a URL that refreshes the password file, servlet cache, etc.}
243243
to @litchar{-}.
244244
}
245245

246+
@defthing[combined-log-format format-reqresp/c]{
247+
Formats a request and a response to approximate the Common Log Format.
248+
As this function does not have access to the size of the object returned
249+
to the client, it defaults the field to @litchar{-}.
250+
}
251+
246252
@defthing[log-format/c contract?]{
247-
Equivalent to @racket[(symbols 'parenthesized-default 'extended 'apache-default)].
253+
Equivalent to @racket[(symbols 'parenthesized-default 'extended 'apache-default 'combined)].
248254
}
249255

250256
@defproc[(log-format->format [id log-format/c])
251257
format-reqresp/c]{
252258
Maps @racket['parenthesized-default] to @racket[paren-format],
253-
@racket['extended] to @racket[extended-format], and
254-
@racket['apache-default] to @racket[apache-default-format].
259+
@racket['extended] to @racket[extended-format],
260+
@racket['apache-default] to @racket[apache-default-format], and
261+
@racket['combined] to @racket[combined-log-format]
255262
}
256263

257264
@defproc[(make [#:format format (or/c log-format/c format-reqresp/c) paren-format]
@@ -292,18 +299,24 @@ a URL that refreshes the password file, servlet cache, etc.}
292299
includes information about the response to a request, which this
293300
function does not have access to, so it defaults the last two fields
294301
to @litchar{-} and @litchar{-}.
302+
}
295303

304+
@defthing[combined-log-format format-req/c]{
305+
Formats a request and a response to approximate the Common Log Format.
306+
As this function does not have access to the size of the object returned
307+
to the client, it defaults the field to @litchar{-}.
296308
}
297309

298310
@defthing[log-format/c contract?]{
299-
Equivalent to @racket[(symbols 'parenthesized-default 'extended 'apache-default)].
311+
Equivalent to @racket[(symbols 'parenthesized-default 'extended 'apache-default 'combined)].
300312
}
301313

302314
@defproc[(log-format->format [id log-format/c])
303315
format-req/c]{
304316
Maps @racket['parenthesized-default] to @racket[paren-format],
305-
@racket['extended] to @racket[extended-format], and
306-
@racket['apache-default] to @racket[apache-default-format].
317+
@racket['extended] to @racket[extended-format],
318+
@racket['apache-default] to @racket[apache-default-format], and
319+
@racket['combined] to @racket[combined-log-format]
307320
}
308321

309322
@defproc[(make [#:format format (or/c log-format/c format-req/c) paren-format]

0 commit comments

Comments
 (0)