/usr/share/doc/racket/web-server-internal/blueboxes.rktd is in racket-doc 6.7-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 | 15587
((3) 0 () 40 ((q lib "web-server/configuration/configuration-table-structs.rkt") (q 17880 . 16) (q lib "web-server/private/timer.rkt") (q lib "web-server/configuration/responders.rkt") (q lib "web-server/private/util.rkt") (q 17620 . 8) (q lib "web-server/private/servlet.rkt") (q 6075 . 9) (q 20035 . 16) (q lib "web-server/web-server.rkt") (q 19654 . 12) (q lib "web-server/dispatchers/dispatch-passwords.rkt") (q lib "web-server/private/connection-manager.rkt") (q lib "web-server/web-config-sig.rkt") (q 21985 . 7) (q lib "web-server/private/dispatch-server-sig.rkt") (q 17097 . 12) (q lib "web-server/dispatchers/dispatch-log.rkt") (q lib "web-server/dispatchers/dispatch-servlets.rkt") (q 19129 . 16) (q lib "web-server/servlet-dispatch.rkt") (q lib "web-server/servlet/setup.rkt") (q lib "web-server/private/cache-table.rkt") (q 18356 . 18) (q lib "web-server/configuration/configuration-table.rkt") (q lib "web-server/dispatchers/dispatch.rkt") (q 1398 . 3) (q lib "web-server/lang/serial-lambda.rkt") (q 22570 . 8) (q lib "web-server/configuration/namespace.rkt") (q lib "web-server/private/mime-types.rkt") (q lib "web-server/dispatchers/filesystem-map.rkt") (q lib "web-server/private/mod-map.rkt") (q lib "web-server/web-config-unit.rkt") (q lib "web-server/private/gzip.rkt") (q lib "web-server/dispatchers/dispatch-stat.rkt") (q lib "web-server/web-server-sig.rkt") (q lib "web-server/private/dispatch-server-unit.rkt") (q lib "web-server/private/url-param.rkt") (q lib "web-server/web-server-unit.rkt")) () (h ! (equal) ((c def c (c (? . 0) q host-responders)) c (? . 1)) ((c def c (c (? . 0) q host?)) c (? . 1)) ((c def c (c (? . 11) q make-basic-denied?/path)) q (3119 . 3)) ((c def c (c (? . 4) q url-path->string)) q (24775 . 3)) ((c def c (c (? . 24) q write-configuration-table)) q (16973 . 4)) ((c sig-val c (c (? . 15) q dispatch-server-config^ port)) q (447 . 2)) ((c def c (c (? . 21) q path->servlet/c)) q (5351 . 2)) ((c def c (c (? . 0) q paths-passwords)) c (? . 8)) ((c def c (c (? . 0) q configuration-table-virtual-hosts)) c (? . 16)) ((c def c (c (? . 2) q timer-manager?)) q (21925 . 3)) ((c def c (c (? . 3) q gen-protocol-responder)) q (21609 . 3)) ((c def c (c (? . 2) q struct:timer)) c (? . 14)) ((c def c (c (? . 3) q servlet-loading-responder)) q (20886 . 4)) ((c def c (c (? . 29) q make-make-servlet-namespace)) q (5891 . 4)) ((c def c (c (? . 4) q build-path-unless-absolute)) q (25124 . 4)) ((q def ((lib "web-server/dispatchers/dispatch-timeout.rkt") make)) q (1925 . 3)) ((c def c (c (? . 0) q make-timeouts)) c (? . 10)) ((c def c (c (? . 6) q servlet-custodian)) c (? . 7)) ((c def c (c (? . 18) q url->servlet/c)) q (3839 . 2)) ((c def c (c (? . 30) q make-path->mime-type)) q (24028 . 3)) ((c def c (c (? . 2) q start-timer)) q (22237 . 5)) ((c def c (c (? . 12) q connection-custodian)) c (? . 28)) ((c def c (c (? . 3) q servlet-error-responder)) q (21087 . 4)) ((c sig-val c (c (? . 13) q web-config^ max-waiting)) q (14538 . 2)) ((q def ((lib "web-server/dispatchers/dispatch-sequencer.rkt") make)) q (1841 . 3)) ((c def c (c (? . 0) q host-table?)) c (? . 5)) ((c def c (c (? . 9) q serve/ports)) q (7987 . 23)) ((c def c (c (? . 0) q host-table-messages)) c (? . 5)) ((c def c (c (? . 6) q servlet?)) c (? . 7)) ((c def c (c (? . 0) q paths-host-base)) c (? . 8)) ((c def c (c (? . 9) q do-not-return)) q (11716 . 2)) ((c def c (c (? . 31) q make-url->path)) q (1558 . 3)) ((c def c (c (? . 0) q timeouts-file-per-byte)) c (? . 10)) ((c def c (c (? . 4) q read/bytes)) q (25412 . 3)) ((c def c (c (? . 11) q denied?/c)) q (2720 . 2)) ((c def c (c (? . 0) q timeouts-servlet-connection)) c (? . 10)) ((c def c (c (? . 4) q path-piece?)) q (25539 . 2)) ((c def c (c (? . 4) q write/bytes)) q (25478 . 3)) ((c def c (c (? . 11) q authorized?/c)) q (3085 . 2)) ((c def c (c (? . 6) q struct:servlet)) c (? . 7)) ((c def c (c (? . 9) q serve/ips+ports)) q (9373 . 22)) ((c def c (c (? . 3) q gen-servlet-not-found)) q (20983 . 3)) ((c def c (c (? . 12) q connection-manager?)) q (22817 . 3)) ((c sig-val c (c (? . 13) q web-config^ make-servlet-namespace)) q (14755 . 2)) ((c def c (c (? . 0) q messages-authentication)) c (? . 19)) ((c def c (c (? . 22) q cache-table?)) q (23885 . 3)) ((c def c (c (? . 0) q timeouts-default-servlet)) c (? . 10)) ((c def c (c (? . 38) q extract-param)) q (24352 . 4)) ((c def c (c (? . 2) q timer-action)) c (? . 14)) ((c form c (c (? . 36) q web-server^)) q (14122 . 2)) ((c sig-val c (c (? . 15) q dispatch-server-connect^ port->real-ports)) q (284 . 4)) ((c def c (c (? . 17) q format-req/c)) q (2295 . 2)) ((c def c (c (? . 4) q directory-part)) q (25060 . 3)) ((c def c (c (? . 0) q host-table-indices)) c (? . 5)) ((q def ((lib "web-server/dispatchers/dispatch-lift.rkt") make)) q (2002 . 3)) ((c def c (c (? . 20) q serve/launch/wait)) q (13100 . 20)) ((c def c (c (? . 4) q network-error)) q (25232 . 5)) ((c def c (c (? . 32) q compress-serial)) q (24133 . 3)) ((c def c (c (? . 0) q configuration-table-initial-connection-timeout)) c (? . 16)) ((c def c (c (? . 17) q make)) q (2558 . 4)) ((c def c (c (? . 0) q make-configuration-table)) c (? . 16)) ((c def c (c (? . 0) q responders-authentication)) c (? . 23)) ((c def c (c (? . 2) q timer-tm)) c (? . 14)) ((c def c (c (? . 18) q make)) q (4074 . 10)) ((c def c (c (? . 6) q make-servlet)) c (? . 7)) ((q def ((lib "web-server/dispatchers/dispatch-files.rkt") make)) q (3450 . 8)) ((c def c (c (? . 0) q messages)) c (? . 19)) ((c sig-val c (c (? . 15) q dispatch-server-config^ initial-connection-timeout)) q (576 . 2)) ((c def c (c (? . 20) q dispatch/servlet)) q (11752 . 22)) ((c def c (c (? . 21) q make-default-path->servlet)) q (5387 . 8)) ((c def c (c (? . 22) q cache-table-lookup!)) q (23694 . 5)) ((c def c (c (? . 25) q exn:dispatcher?)) c (? . 26)) ((c def c (c (? . 0) q host-passwords)) c (? . 1)) ((c def c (c (? . 39) q web-server@)) q (14406 . 3)) ((c def c (c (? . 0) q responders?)) c (? . 23)) ((c def c (c (? . 0) q configuration-table)) c (? . 16)) ((c def c (c (? . 24) q configuration-table-sexpr?)) q (16588 . 2)) ((c def c (c (? . 0) q timeouts?)) c (? . 10)) ((q form ((lib "web-server/private/define-closure.rkt") define-closure)) q (23586 . 2)) ((c def c (c (? . 0) q struct:host-table)) c (? . 5)) ((c def c (c (? . 3) q gen-servlets-refreshed)) q (21301 . 3)) ((c def c (c (? . 6) q set-servlet-namespace!)) c (? . 7)) ((c def c (c (? . 0) q responders)) c (? . 23)) ((c def c (c (? . 0) q timeouts-password)) c (? . 10)) ((c def c (c (? . 0) q configuration-table?)) c (? . 16)) ((c def c (c (? . 25) q make-exn:dispatcher)) c (? . 26)) ((c sig-val c (c (? . 15) q dispatch-server-config^ read-request)) q (622 . 5)) ((c def c (c (? . 4) q url-replace-path)) q (24644 . 4)) ((c form c (c (? . 13) q web-config^)) q (14502 . 2)) ((c def c (c (? . 17) q apache-default-format)) q (2403 . 2)) ((c def c (c (? . 0) q responders-servlet-loading)) c (? . 23)) ((c def c (c (? . 0) q make-messages)) c (? . 19)) ((c def c (c (? . 0) q responders-servlet)) c (? . 23)) ((c def c (c (? . 0) q struct:timeouts)) c (? . 10)) ((c sig-val c (c (? . 15) q dispatch-server^ serve)) q (41 . 3)) ((c def c (c (? . 4) q bytes-ci=?)) q (24563 . 4)) ((c def c (c (? . 0) q struct:configuration-table)) c (? . 16)) ((c def c (c (? . 0) q messages-collect-garbage)) c (? . 19)) ((c def c (c (? . 0) q paths-servlet)) c (? . 8)) ((c def c (c (? . 6) q set-servlet-handler!)) c (? . 7)) ((c def c (c (? . 0) q struct:messages)) c (? . 19)) ((c form c (c (? . 27) q serial-lambda)) q (23488 . 2)) ((c def c (c (? . 25) q dispatcher-interface-version/c)) q (1318 . 3)) ((c def c (c (? . 25) q next-dispatcher)) q (1488 . 2)) ((c def c (c (? . 21) q default-module-specs)) q (5297 . 2)) ((c form c (c (? . 27) q serial-case-lambda)) q (23531 . 2)) ((c def c (c (? . 0) q host-table-log-format)) c (? . 5)) ((c def c (c (? . 0) q timeouts)) c (? . 10)) ((c def c (c (? . 6) q set-servlet-manager!)) c (? . 7)) ((c def c (c (? . 0) q paths?)) c (? . 8)) ((c sig-val c (c (? . 15) q dispatch-server-config^ max-waiting)) q (527 . 2)) ((c def c (c (? . 12) q kill-connection!)) q (23329 . 3)) ((c def c (c (? . 0) q paths-htdocs)) c (? . 8)) ((c def c (c (? . 34) q gunzip/bytes)) q (24504 . 3)) ((c def c (c (? . 6) q set-servlet-custodian!)) c (? . 7)) ((c def c (c (? . 9) q make-ssl-connect@)) q (11491 . 6)) ((c def c (c (? . 0) q make-responders)) c (? . 23)) ((c def c (c (? . 0) q struct:host)) c (? . 1)) ((c sig-val c (c (? . 15) q dispatch-server-config^ listen-ip)) q (482 . 2)) ((c def c (c (? . 12) q struct:connection)) c (? . 28)) ((c def c (c (? . 0) q configuration-table-max-waiting)) c (? . 16)) ((c def c (c (? . 0) q messages-file-not-found)) c (? . 19)) ((c def c (c (? . 12) q connection?)) c (? . 28)) ((c def c (c (? . 24) q read-configuration-table)) q (16878 . 3)) ((c def c (c (? . 3) q gen-authentication-responder)) q (21478 . 4)) ((c def c (c (? . 0) q responders-collect-garbage)) c (? . 23)) ((c def c (c (? . 0) q make-host)) c (? . 1)) ((c def c (c (? . 33) q configuration-table->web-config@)) q (14813 . 12)) ((c def c (c (? . 12) q start-connection-manager)) q (22882 . 2)) ((c def c (c (? . 29) q make-servlet-namespace/c)) q (5846 . 2)) ((c def c (c (? . 9) q serve/web-config@)) q (10752 . 11)) ((c def c (c (? . 12) q connection-close?)) c (? . 28)) ((c sig-val c (c (? . 13) q web-config^ port)) q (14682 . 2)) ((c def c (c (? . 35) q make-gc-thread)) q (6381 . 3)) ((c def c (c (? . 0) q paths-mime-types)) c (? . 8)) ((c def c (c (? . 21) q make-stateless.servlet)) q (4945 . 9)) ((c form c (c (? . 15) q dispatch-server-connect^)) q (235 . 2)) ((c def c (c (? . 0) q paths-log)) c (? . 8)) ((c sig-val c (c (? . 13) q web-config^ listen-ip)) q (14710 . 2)) ((c def c (c (? . 22) q cache-table-clear!)) q (23815 . 3)) ((c def c (c (? . 0) q host-table-timeouts)) c (? . 5)) ((q def ((lib "web-server/dispatchers/dispatch-filter.rkt") make)) q (2086 . 4)) ((c def c (c (? . 4) q path-without-base)) q (24945 . 4)) ((c def c (c (? . 12) q connection-timer)) c (? . 28)) ((c def c (c (? . 6) q servlet-manager)) c (? . 7)) ((c def c (c (? . 2) q timer)) c (? . 14)) ((q def ((lib "web-server/dispatchers/dispatch-host.rkt") make)) q (3338 . 3)) ((c def c (c (? . 17) q paren-format)) q (2328 . 2)) ((c def c (c (? . 30) q read-mime-types)) q (23943 . 3)) ((c def c (c (? . 12) q adjust-connection-timeout!)) q (23393 . 4)) ((c def c (c (? . 0) q host)) c (? . 1)) ((c def c (c (? . 6) q servlet-handler)) c (? . 7)) ((c def c (c (? . 24) q default-configuration-table-path)) q (16539 . 2)) ((c def c (c (? . 6) q servlet-directory)) c (? . 7)) ((c def c (c (? . 0) q configuration-table-default-host)) c (? . 16)) ((c def c (c (? . 4) q explode-path*)) q (24866 . 3)) ((c def c (c (? . 3) q file-response)) q (20596 . 9)) ((c def c (c (? . 0) q host-indices)) c (? . 1)) ((c def c (c (? . 2) q reset-timer!)) q (22358 . 4)) ((c def c (c (? . 0) q messages-protocol)) c (? . 19)) ((c def c (c (? . 31) q url->path/c)) q (1526 . 2)) ((c def c (c (? . 32) q decompress-serial)) q (24193 . 3)) ((c def c (c (? . 37) q dispatch-server@)) q (1096 . 4)) ((c def c (c (? . 3) q gen-servlet-responder)) q (21182 . 4)) ((c def c (c (? . 9) q raw:dispatch-server-connect@)) q (11396 . 3)) ((c def c (c (? . 18) q make-cached-url->servlet)) q (3874 . 6)) ((q def ((lib "web-server/dispatchers/dispatch-pathprocedure.rkt") make)) q (2184 . 4)) ((c def c (c (? . 0) q responders-servlets-refreshed)) c (? . 23)) ((c def c (c (? . 0) q timeouts-file-base)) c (? . 10)) ((c def c (c (? . 3) q gen-passwords-refreshed)) q (21389 . 3)) ((c def c (c (? . 0) q host-table)) c (? . 5)) ((c def c (c (? . 0) q make-paths)) c (? . 8)) ((c def c (c (? . 24) q sexpr->configuration-table)) q (16649 . 3)) ((c def c (c (? . 0) q responders-protocol)) c (? . 23)) ((c def c (c (? . 21) q make-v2.servlet)) q (4769 . 5)) ((c def c (c (? . 31) q filter-url->path)) q (1725 . 4)) ((c def c (c (? . 0) q messages?)) c (? . 19)) ((c def c (c (? . 33) q configuration-table-sexpr->web-config@)) q (15560 . 15)) ((c def c (c (? . 2) q timer-evt)) c (? . 14)) ((c def c (c (? . 0) q host-table-paths)) c (? . 5)) ((c def c (c (? . 0) q messages-servlets-refreshed)) c (? . 19)) ((c def c (c (? . 17) q log-format/c)) q (2448 . 2)) ((c def c (c (? . 2) q cancel-timer!)) q (22514 . 3)) ((c def c (c (? . 0) q struct:responders)) c (? . 23)) ((c def c (c (? . 11) q password-file->authorized?)) q (3217 . 4)) ((c def c (c (? . 3) q gen-collect-garbage-responder)) q (21830 . 3)) ((c sig-val c (c (? . 15) q dispatch-server^ serve-ports)) q (146 . 4)) ((c def c (c (? . 6) q servlet)) c (? . 7)) ((c sig-val c (c (? . 13) q web-config^ initial-connection-timeout)) q (14636 . 2)) ((c def c (c (? . 0) q messages-servlet)) c (? . 19)) ((c def c (c (? . 17) q log-format->format)) q (2481 . 3)) ((c def c (c (? . 34) q gzip/bytes)) q (24447 . 3)) ((c form c (c (? . 15) q dispatch-server^)) q (0 . 2)) ((c def c (c (? . 4) q exn->string)) q (25338 . 3)) ((c def c (c (? . 35) q make)) q (6449 . 2)) ((c def c (c (? . 9) q serve)) q (6680 . 23)) ((c sig-val c (c (? . 36) q web-server^ serve)) q (14158 . 2)) ((c sig-val c (c (? . 36) q web-server^ serve-ports)) q (14192 . 4)) ((c def c (c (? . 37) q dispatch-server-with-connect@)) q (865 . 6)) ((c def c (c (? . 2) q timer?)) c (? . 14)) ((c def c (c (? . 31) q make-url->valid-path)) q (1634 . 3)) ((c def c (c (? . 0) q responders-file-not-found)) c (? . 23)) ((c def c (c (? . 24) q configuration-table->sexpr)) q (16762 . 4)) ((c def c (c (? . 0) q paths-conf)) c (? . 8)) ((c def c (c (? . 38) q insert-param)) q (24257 . 5)) ((c def c (c (? . 12) q connection-o-port)) c (? . 28)) ((c form c (c (? . 15) q dispatch-server-config^)) q (399 . 2)) ((c def c (c (? . 12) q new-connection)) q (22944 . 13)) ((c def c (c (? . 0) q struct:paths)) c (? . 8)) ((c sig-val c (c (? . 13) q web-config^ virtual-hosts)) q (14587 . 2)) ((c def c (c (? . 0) q responders-passwords-refreshed)) c (? . 23)) ((c def c (c (? . 0) q host-log-format)) c (? . 1)) ((c def c (c (? . 12) q connection)) c (? . 28)) ((c def c (c (? . 0) q host-paths)) c (? . 1)) ((c def c (c (? . 2) q make-timer)) c (? . 14)) ((c def c (c (? . 12) q make-connection)) c (? . 28)) ((c def c (c (? . 39) q web-server-with-connect@)) q (14281 . 4)) ((c def c (c (? . 2) q timer-expire-seconds)) c (? . 14)) ((c def c (c (? . 0) q paths)) c (? . 8)) ((c def c (c (? . 21) q make-v1.servlet)) q (4593 . 5)) ((c def c (c (? . 0) q messages-passwords-refreshed)) c (? . 19)) ((c def c (c (? . 0) q host-log-path)) c (? . 1)) ((c def c (c (? . 25) q exn:dispatcher)) c (? . 26)) ((c def c (c (? . 22) q make-cache-table)) q (23647 . 2)) ((c def c (c (? . 25) q dispatcher/c)) q (1285 . 2)) ((c def c (c (? . 2) q start-timer-manager)) q (22185 . 2)) ((c def c (c (? . 12) q connection-i-port)) c (? . 28)) ((c def c (c (? . 25) q struct:exn:dispatcher)) c (? . 26)) ((c def c (c (? . 3) q gen-file-not-found-responder)) q (21714 . 4)) ((c def c (c (? . 11) q make)) q (2750 . 7)) ((c def c (c (? . 6) q servlet-namespace)) c (? . 7)) ((c def c (c (? . 2) q increment-timer!)) q (22434 . 4)) ((c def c (c (? . 6) q set-servlet-directory!)) c (? . 7)) ((c def c (c (? . 17) q extended-format)) q (2364 . 2)) ((q def ((lib "web-server/dispatchers/limit.rkt") make)) q (6484 . 5)) ((c def c (c (? . 0) q make-host-table)) c (? . 5)) ((c def c (c (? . 0) q configuration-table-port)) c (? . 16)) ((c def c (c (? . 0) q host-timeouts)) c (? . 1)) ((c sig-val c (c (? . 15) q dispatch-server-config^ dispatch)) q (815 . 2))))
signature
dispatch-server^ : signature
procedure
(serve)
-> (->* () (#:confirmation-channel (or/c false/c async-channel?)) (-> void))
procedure
(serve-ports ip op) -> void
ip : input-port?
op : output-port?
signature
dispatch-server-connect^ : signature
procedure
(port->real-ports ip op) -> input-port? output-port?
ip : input-port?
op : output-port?
signature
dispatch-server-config^ : signature
value
port : listen-port-number?
value
listen-ip : (or/c string? false/c)
value
max-waiting : exact-nonnegative-integer?
value
initial-connection-timeout : integer?
procedure
(read-request c p port-addresses) -> any/c boolean?
c : connection?
p : listen-port-number?
port-addresses : (input-port? . -> . (values string? string?))
value
dispatch : (-> connection? any/c void)
value
dispatch-server-with-connect@
: (unit/c (import tcp^
dispatch-server-connect^
dispatch-server-config^)
(export dispatch-server^))
value
dispatch-server@ : (unit/c (import tcp^
dispatch-server-config^)
(export dispatch-server^))
value
dispatcher/c : contract?
procedure
(dispatcher-interface-version/c any) -> boolean?
any : any/c
struct
(struct exn:dispatcher ()
#:extra-constructor-name make-exn:dispatcher)
procedure
(next-dispatcher) -> void
value
url->path/c : contract?
procedure
(make-url->path base) -> url->path/c
base : path-string?
procedure
(make-url->valid-path url->path) -> url->path/c
url->path : url->path/c
procedure
(filter-url->path regex url->path) -> url->path/c
regex : regexp?
url->path : url->path/c
procedure
(make dispatcher ...) -> dispatcher/c
dispatcher : dispatcher/c
procedure
(make new-timeout) -> dispatcher/c
new-timeout : integer?
procedure
(make proc) -> dispatcher/c
proc : (request? . -> . response?)
procedure
(make regex inner) -> dispatcher/c
regex : regexp?
inner : dispatcher/c
procedure
(make path proc) -> dispatcher/c
path : string?
proc : (request? . -> . response?)
value
format-req/c : contract?
value
paren-format : format-req/c
value
extended-format : format-req/c
value
apache-default-format : format-req/c
value
log-format/c : contract?
procedure
(log-format->format id) -> format-req/c
id : log-format/c
procedure
(make [#:format format #:log-path log-path]) -> dispatcher/c
format : format-req/c = paren-format
log-path : path-string? = "log"
value
denied?/c : contract?
procedure
(make denied?
[#:authentication-responder authentication-responder])
-> dispatcher/c
denied? : denied?/c
authentication-responder : (url? header? . -> . response?)
= (gen-authentication-responder "forbidden.html")
value
authorized?/c : contract?
procedure
(make-basic-denied?/path authorized?) -> denied?/c
authorized? : authorized?/c
procedure
(password-file->authorized? password-file)
-> (-> void) authorized?/c
password-file : path-string?
procedure
(make lookup-dispatcher) -> dispatcher/c
lookup-dispatcher : (symbol? . -> . dispatcher/c)
procedure
(make #:url->path url->path
[#:path->mime-type path->mime-type
#:indices indices]) -> dispatcher/c
url->path : url->path/c
path->mime-type : (path? . -> . (or/c false/c bytes)?)
= (lambda (path) #f)
indices : (listof string?) = (list "index.html" "index.htm")
value
url->servlet/c : contract?
procedure
(make-cached-url->servlet url->path
path->serlvet)
-> (-> void) url->servlet/c
url->path : url->path/c
path->serlvet : path->servlet/c
procedure
(make url->servlet
[#:responders-servlet-loading responders-servlet-loading
#:responders-servlet responders-servlet])
-> dispatcher/c
url->servlet : url->servlet/c
responders-servlet-loading : (url? exn? . -> . can-be-response?)
= servlet-loading-responder
responders-servlet : (url? exn? . -> . can-be-response?)
= servlet-error-responder
procedure
(make-v1.servlet directory timeout start) -> servlet?
directory : path-string?
timeout : integer?
start : (request? . -> . can-be-response?)
procedure
(make-v2.servlet directory manager start) -> servlet?
directory : path-string?
manager : manager?
start : (request? . -> . can-be-response?)
procedure
(make-stateless.servlet directory
stuffer
manager
start) -> servlet?
directory : path-string?
stuffer : (stuffer/c serializable? bytes?)
manager : manager?
start : (request? . -> . can-be-response?)
value
default-module-specs : (listof module-path?)
value
path->servlet/c : contract?
procedure
(make-default-path->servlet
[#:make-servlet-namespace make-servlet-namespace
#:timeouts-default-servlet timeouts-default-servlet])
-> path->servlet/c
make-servlet-namespace : make-servlet-namespace/c
= (make-make-servlet-namespace)
timeouts-default-servlet : integer? = 30
value
make-servlet-namespace/c : contract?
procedure
(make-make-servlet-namespace #:to-be-copied-module-specs to-be-copied-module-specs)
-> make-servlet-namespace/c
to-be-copied-module-specs : (listof module-path?)
struct
(struct servlet (custodian namespace manager directory handler)
#:extra-constructor-name make-servlet
#:mutable)
custodian : custodian?
namespace : namespace?
manager : manager?
directory : path-string?
handler : (request? . -> . can-be-response?)
procedure
(make-gc-thread time) -> thread?
time : integer?
procedure
(make) -> dispatcher/c
procedure
(make limit inner [#:over-limit over-limit]) -> dispatcher/c
limit : number?
inner : dispatcher/c
over-limit : (symbols 'block 'kill-new 'kill-old) = 'block
procedure
(serve
#:dispatch dispatch
[#:confirmation-channel confirmation-channel
#:connection-close? connection-close?
#:dispatch-server-connect@ dispatch-server-connect@
#:tcp@ tcp@
#:port port
#:listen-ip listen-ip
#:max-waiting max-waiting
#:initial-connection-timeout initial-connection-timeout])
-> (-> void)
dispatch : dispatcher/c
confirmation-channel : (or/c false/c async-channel?) = #f
connection-close? : boolean? = #f
dispatch-server-connect@ : (unit/c (import)
(export dispatch-server-connect^))
= raw:dispatch-server-connect@
tcp@ : (unit/c (import) (export tcp^)) = raw:tcp@
port : listen-port-number? = 80
listen-ip : (or/c string? false/c) = #f
max-waiting : integer? = 511
initial-connection-timeout : integer? = 60
procedure
(serve/ports
#:dispatch dispatch
[#:confirmation-channel confirmation-channel
#:connection-close? connection-close?
#:dispatch-server-connect@ dispatch-server-connect@
#:tcp@ tcp@
#:ports ports
#:listen-ip listen-ip
#:max-waiting max-waiting
#:initial-connection-timeout initial-connection-timeout])
-> (-> void)
dispatch : dispatcher/c
confirmation-channel : (or/c false/c async-channel?) = #f
connection-close? : boolean? = #f
dispatch-server-connect@ : (unit/c (import)
(export dispatch-server-connect^))
= raw:dispatch-server-connect@
tcp@ : (unit/c (import) (export tcp^)) = raw:tcp@
ports : (listof listen-port-number?) = (list 80)
listen-ip : (or/c string? false/c) = #f
max-waiting : integer? = 511
initial-connection-timeout : integer? = 60
procedure
(serve/ips+ports
#:dispatch dispatch
[#:confirmation-channel confirmation-channel
#:connection-close? connection-close?
#:dispatch-server-connect@ dispatch-server-connect@
#:tcp@ tcp@
#:ips+ports ips+ports
#:max-waiting max-waiting
#:initial-connection-timeout initial-connection-timeout])
-> (-> void)
dispatch : dispatcher/c
confirmation-channel : (or/c false/c async-channel?) = #f
connection-close? : boolean? = #f
dispatch-server-connect@ : (unit/c (import)
(export dispatch-server-connect^))
= raw:dispatch-server-connect@
tcp@ : (unit/c (import) (export tcp^)) = raw:tcp@
ips+ports : (listof (cons/c (or/c string? false/c) (listof listen-port-number?)))
= (list (cons #f (list 80)))
max-waiting : integer? = 511
initial-connection-timeout : integer? = 60
procedure
(serve/web-config@
config@
[#:dispatch-server-connect@ dispatch-server-connect@
#:tcp@ tcp@])
-> (-> void)
config@ : (unit/c (import) (export web-config^))
dispatch-server-connect@ : (unit/c (import)
(export dispatch-server-connect^))
= raw:dispatch-server-connect@
tcp@ : (unit/c (import) (export tcp^)) = raw:tcp@
value
raw:dispatch-server-connect@
: (unit/c (import) (export dispatch-server-connect^))
procedure
(make-ssl-connect@ server-cert-file
server-key-file)
-> (unit/c (import) (export dispatch-server-connect^))
server-cert-file : path-string?
server-key-file : path-string?
procedure
(do-not-return) -> void
procedure
(dispatch/servlet
start
[#:regexp regexp
#:stateless? stateless?
#:stuffer stuffer
#:manager manager
#:current-directory servlet-current-directory
#:responders-servlet-loading responders-servlet-loading
#:responders-servlet responders-servlet])
-> dispatcher/c
start : (request? . -> . response?)
regexp : regexp? = #rx""
stateless? : boolean? = #f
stuffer : (stuffer/c serializable? bytes?) = default-stuffer
manager : manager?
= (make-threshold-LRU-manager #f (* 1024 1024 64))
servlet-current-directory : path-string? = (current-directory)
responders-servlet-loading : (url? any/c . -> . can-be-response?)
= servlet-loading-responder
responders-servlet : (url? any/c . -> . can-be-response?)
= servlet-error-responder
procedure
(serve/launch/wait make-dispatcher
[#:connection-close? connection-close?
#:launch-path launch-path
#:banner? banner?
#:listen-ip listen-ip
#:port port
#:max-waiting max-waiting
#:ssl-cert ssl-cert
#:ssl-key ssl-key])
-> void
make-dispatcher : (semaphore? . -> . dispatcher/c)
connection-close? : boolean? = #f
launch-path : (or/c false/c string?) = #f
banner? : boolean? = #f
listen-ip : (or/c false/c string?) = "127.0.0.1"
port : number? = 8000
max-waiting : exact-nonnegative-integer? = 511
ssl-cert : (or/c false/c path-string?) = #f
ssl-key : (or/c false/c path-string?) = #f
signature
web-server^ : signature
procedure
(serve) -> (-> void)
procedure
(serve-ports ip op) -> void
ip : input-port?
op : output-port?
value
web-server-with-connect@
: (unit/c (web-config^ tcp^ dispatch-server-connect^)
(web-server^))
value
web-server@ : (unit/c (web-config^ tcp^)
(web-server^))
signature
web-config^ : signature
value
max-waiting : exact-nonnegative-integer?
value
virtual-hosts : (string? . -> . host?)
value
initial-connection-timeout : integer?
value
port : port-number?
value
listen-ip : (or/c false/c string?)
value
make-servlet-namespace : make-servlet-namespace/c
procedure
(configuration-table->web-config@
path
[#:port port
#:listen-ip listen-ip
#:make-servlet-namespace make-servlet-namespace])
-> (unit/c (import) (export web-config^))
path : path-string?
port : (or/c false/c port-number?) = #f
listen-ip : (or/c false/c string?) = #f
make-servlet-namespace : make-servlet-namespace/c
= (make-make-servlet-namespace)
procedure
(configuration-table-sexpr->web-config@
sexpr
[#:web-server-root web-server-root
#:port port
#:listen-ip listen-ip
#:make-servlet-namespace make-servlet-namespace])
-> (unit/c (import) (export web-config^))
sexpr : list?
web-server-root : path-string?
= (directory-part default-configuration-table-path)
port : (or/c false/c port-number?) = #f
listen-ip : (or/c false/c string?) = #f
make-servlet-namespace : make-servlet-namespace/c
= (make-make-servlet-namespace)
value
default-configuration-table-path : path?
value
configuration-table-sexpr? : (any . -> . boolean?)
procedure
(sexpr->configuration-table sexpr) -> configuration-table?
sexpr : configuration-table-sexpr?
procedure
(configuration-table->sexpr ctable)
-> configuration-table-sexpr?
ctable : configuration-table?
procedure
(read-configuration-table path) -> configuration-table?
path : path-string?
procedure
(write-configuration-table ctable path) -> void
ctable : configuration-table?
path : path-string?
struct
(struct configuration-table (port
max-waiting
initial-connection-timeout
default-host
virtual-hosts)
#:extra-constructor-name make-configuration-table)
port : port-number?
max-waiting : exact-nonnegative-integer?
initial-connection-timeout : natural-number/c
default-host : host-table?
virtual-hosts : (listof (cons/c string? host-table?))
struct
(struct host-table (indices log-format messages timeouts paths)
#:extra-constructor-name make-host-table)
indices : (listof string?)
log-format : symbol?
messages : messages?
timeouts : timeouts?
paths : paths?
struct
(struct host (indices
log-format
log-path
passwords
responders
timeouts
paths)
#:extra-constructor-name make-host)
indices : (listof string?)
log-format : symbol?
log-path : (or/c false/c path-string?)
passwords : (or/c false/c path-string?)
responders : responders?
timeouts : timeouts?
paths : paths?
struct
(struct responders (servlet
servlet-loading
authentication
servlets-refreshed
passwords-refreshed
file-not-found
protocol
collect-garbage)
#:extra-constructor-name make-responders)
servlet : (url? any/c . -> . response?)
servlet-loading : (url? any/c . -> . response?)
authentication : (url? (cons/c symbol? string?) . -> . response?)
servlets-refreshed : (-> response?)
passwords-refreshed : (-> response?)
file-not-found : (request? . -> . response?)
protocol : (url? . -> . response?)
collect-garbage : (-> response?)
struct
(struct messages (servlet
authentication
servlets-refreshed
passwords-refreshed
file-not-found
protocol
collect-garbage)
#:extra-constructor-name make-messages)
servlet : string?
authentication : string?
servlets-refreshed : string?
passwords-refreshed : string?
file-not-found : string?
protocol : string?
collect-garbage : string?
struct
(struct timeouts (default-servlet
password
servlet-connection
file-per-byte
file-base)
#:extra-constructor-name make-timeouts)
default-servlet : number?
password : number?
servlet-connection : number?
file-per-byte : number?
file-base : number?
struct
(struct paths (conf
host-base
log
htdocs
servlet
mime-types
passwords)
#:extra-constructor-name make-paths)
conf : (or/c false/c path-string?)
host-base : (or/c false/c path-string?)
log : (or/c false/c path-string?)
htdocs : (or/c false/c path-string?)
servlet : (or/c false/c path-string?)
mime-types : (or/c false/c path-string?)
passwords : (or/c false/c path-string?)
procedure
(file-response http-code
short-version
text-file
header ...) -> response?
http-code : natural-number/c
short-version : string?
text-file : string?
header : header?
procedure
(servlet-loading-responder url exn) -> response?
url : url?
exn : exn?
procedure
(gen-servlet-not-found file) -> ((url url?) . -> . response?)
file : path-string?
procedure
(servlet-error-responder url exn) -> response?
url : url?
exn : exn?
procedure
(gen-servlet-responder file)
-> ((url url?) (exn any/c) . -> . response?)
file : path-string?
procedure
(gen-servlets-refreshed file) -> (-> response?)
file : path-string?
procedure
(gen-passwords-refreshed file) -> (-> response?)
file : path-string?
procedure
(gen-authentication-responder file)
-> ((url url?) (header header?) . -> . response?)
file : path-string?
procedure
(gen-protocol-responder file) -> ((url url?) . -> . response?)
file : path-string?
procedure
(gen-file-not-found-responder file)
-> ((req request?) . -> . response?)
file : path-string?
procedure
(gen-collect-garbage-responder file) -> (-> response?)
file : path-string?
procedure
(timer-manager? x) -> boolean?
x : any/c
struct
(struct timer (tm evt expire-seconds action)
#:extra-constructor-name make-timer)
tm : timer-manager?
evt : evt?
expire-seconds : number?
action : (-> void)
procedure
(start-timer-manager) -> timer-manager?
procedure
(start-timer tm s action) -> timer?
tm : timer-manager?
s : number?
action : (-> void)
procedure
(reset-timer! t s) -> void
t : timer?
s : number?
procedure
(increment-timer! t s) -> void
t : timer?
s : number?
procedure
(cancel-timer! t) -> void
t : timer?
struct
(struct connection (timer i-port o-port custodian close?)
#:extra-constructor-name make-connection)
timer : timer?
i-port : input-port?
o-port : output-port?
custodian : custodian?
close? : boolean?
procedure
(connection-manager? x) -> boolean?
x : any/c
procedure
(start-connection-manager) -> connection-manager?
procedure
(new-connection cm
timeout
i-port
o-port
cust
close?) -> connection?
cm : connection-manager?
timeout : number?
i-port : input-port?
o-port : output-port?
cust : custodian?
close? : boolean?
procedure
(kill-connection! c) -> void
c : connection?
procedure
(adjust-connection-timeout! c t) -> void
c : connection?
t : number?
syntax
(serial-lambda formals body ...)
syntax
(serial-case-lambda [formals body ...] ...)
syntax
(define-closure tag formals (free-var ...) body)
procedure
(make-cache-table) -> cache-table?
procedure
(cache-table-lookup! ct id mk) -> any/c
ct : cache-table?
id : symbol?
mk : (-> any/c)
procedure
(cache-table-clear! ct) -> void?
ct : cache-table?
procedure
(cache-table? v) -> boolean?
v : any/c
procedure
(read-mime-types p) -> (hash/c symbol? bytes?)
p : path-string?
procedure
(make-path->mime-type p) -> (path? . -> . (or/c false/c bytes?))
p : path-string?
procedure
(compress-serial sv) -> list?
sv : list?
procedure
(decompress-serial csv) -> list?
csv : list?
procedure
(insert-param u k v) -> url?
u : url?
k : string?
v : string?
procedure
(extract-param u k) -> (or/c string? false/c)
u : url?
k : string?
procedure
(gzip/bytes ib) -> bytes?
ib : bytes?
procedure
(gunzip/bytes ib) -> bytes?
ib : bytes?
procedure
(bytes-ci=? b1 b2) -> boolean?
b1 : bytes?
b2 : bytes?
procedure
(url-replace-path proc u) -> url?
proc : ((listof path/param?) . -> . (listof path/param?))
u : url?
procedure
(url-path->string url-path) -> string?
url-path : (listof path/param?)
procedure
(explode-path* p) -> (listof path-piece?)
p : path-string?
procedure
(path-without-base base p) -> (listof path-piece?)
base : path-string?
p : path-string?
procedure
(directory-part p) -> path?
p : path-string?
procedure
(build-path-unless-absolute base p) -> path?
base : path-string?
p : path-string?
procedure
(network-error s fmt v ...) -> void
s : symbol?
fmt : string?
v : any/c
procedure
(exn->string exn) -> string?
exn : (or/c exn? any/c)
procedure
(read/bytes bstr) -> printable/c
bstr : bytes?
procedure
(write/bytes v) -> bytes?
v : printable/c
value
path-piece? : contract?
|