/usr/share/doc/racket/web-server/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 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 | 17165
((3) 0 () 50 ((q lib "web-server/servlet/web.rkt") (q lib "web-server/formlets/input.rkt") (q lib "web-server/http/request-structs.rkt") (q lib "web-server/formlets/lib.rkt") (q lib "web-server/lang/web-cells.rkt") (q 14594 . 4) (q lib "web-server/lang/file-box.rkt") (q lib "web-server/page.rkt") (q lib "web-server/http/response-structs.rkt") (q lib "web-server/managers/manager.rkt") (q 7043 . 17) (q lib "web-server/dispatch/extend.rkt") (q lib "web-server/lang/web.rkt") (q lib "web-server/http/cookie-parse.rkt") (q 19362 . 7) (q lib "web-server/dispatch.rkt") (q 16441 . 8) (q 14715 . 6) (q lib "web-server/templates.rkt") (q 15150 . 18) (q lib "web-server/http/bindings.rkt") (q lib "web-server/lang/stuff-url.rkt") (q 14138 . 5) (q lib "web-server/http/digest-auth.rkt") (q lib "web-server/http/redirect.rkt") (q 8202 . 7) (q 14498 . 4) (q lib "web-server/servlet/web-cells.rkt") (q 7909 . 7) (q lib "web-server/formlets/syntax.rkt") (q lib "web-server/stuffers/stuffer.rkt") (q lib "web-server/lang/soft.rkt") (q lib "web-server/stuffers/store.rkt") (q 13286 . 5) (q lib "web-server/scribblings/dummy-stateless-servlet.rkt") (q lib "web-server/http/id-cookie.rkt") (q 12323 . 5) (q lib "web-server/servlet/servlet-structs.rkt") (q lib "web-server/managers/lru.rkt") (q lib "web-server/stuffers/hmac-sha1.rkt") (q lib "web-server/formlets/servlet.rkt") (q lib "web-server/lang/web-param.rkt") (q lib "web-server/formlets/dyn-syntax.rkt") (q lib "web-server/scribblings/dummy-v2-servlet.rkt") (q lib "web-server/test.rkt") (q lib "web-server/lang/abort-resume.rkt") (q lib "web-server/stuffers/hash.rkt") (q lib "web-server/http/cookie.rkt") (q lib "web-server/insta/insta.rkt") (q lib "web-server/http/basic-auth.rkt")) () (h ! (equal) ((c def c (c (? . 9) q manager-continuation-lookup)) c (? . 10)) ((c def c (c (? . 8) q response-mime)) c (? . 16)) ((c def c (c (? . 0) q redirect/get)) q (5946 . 3)) ((c def c (c (? . 1) q input-string)) q (31837 . 2)) ((q def ((lib "web-server/managers/timeouts.rkt") create-timeout-manager)) q (8711 . 8)) ((c def c (c (? . 0) q send/back)) q (5150 . 3)) ((c def c (c (? . 2) q struct:request)) c (? . 19)) ((c def c (c (? . 1) q make-input)) q (24639 . 3)) ((c def c (c (? . 3) q formlet/c)) q (23625 . 3)) ((c def c (c (? . 24) q redirection-status?)) q (19963 . 3)) ((c form c (c (? . 18) q in)) q (32643 . 2)) ((c def c (c (? . 20) q request-headers)) q (15961 . 3)) ((c def c (c (? . 7) q binding-id/c)) q (32890 . 2)) ((c form c (c (? . 11) q bidi-match-going-in?)) q (23280 . 2)) ((c def c (c (? . 12) q send/suspend/url/dispatch)) q (10992 . 3)) ((c def c (c (? . 2) q bindings-assq-all)) q (15034 . 4)) ((c def c (c (? . 1) q input-symbol)) q (31923 . 2)) ((c def c (c (? . 6) q file-box-set!)) q (11831 . 4)) ((c def c (c (? . 4) q web-cell-shadow)) q (11473 . 4)) ((c def c (c (? . 0) q send/forward)) q (5755 . 3)) ((c def c (c (? . 3) q xml)) q (24154 . 3)) ((c def c (c (? . 1) q img)) q (29201 . 15)) ((c form c (c (? . 15) q dispatch-case)) q (22631 . 4)) ((c def c (c (? . 0) q clear-continuation-table!)) q (6311 . 2)) ((c def c (c (? . 4) q web-cell?)) q (11320 . 3)) ((c def c (c (? . 2) q make-binding:form)) c (? . 5)) ((c def c (c (? . 2) q binding:form?)) c (? . 5)) ((c def c (c (? . 6) q file-box-set?)) q (11766 . 3)) ((c def c (c (? . 1) q make-input*)) q (24756 . 3)) ((c def c (c (? . 1) q radio-group)) q (27454 . 12)) ((c def c (c (? . 3) q xexpr-forest/c)) q (23590 . 2)) ((c form c (c (? . 7) q lambda/page)) q (32709 . 2)) ((c def c (c (? . 2) q make-header)) c (? . 22)) ((c def c (c (? . 37) q any->response)) q (4947 . 3)) ((c def c (c (? . 13) q struct:client-cookie)) c (? . 14)) ((c def c (c (? . 8) q response/full)) q (16692 . 13)) ((c def c (c (? . 2) q headers-assq)) q (14265 . 4)) ((c def c (c (? . 9) q manager-clear-continuations!)) c (? . 10)) ((c def c (c (? . 9) q exn:fail:servlet-manager:no-continuation)) c (? . 25)) ((c form c (c (? . 11) q define-bidi-match-expander)) q (23219 . 2)) ((c def c (c (? . 3) q text)) q (24220 . 3)) ((c def c (c (? . 30) q stuffer?)) c (? . 36)) ((c def c (c (? . 47) q cookie->header)) q (18440 . 3)) ((c def c (c (? . 9) q manager-adjust-timeout!)) c (? . 10)) ((c def c (c (? . 7) q current-request)) q (32793 . 4)) ((c def c (c (? . 32) q struct:store)) c (? . 33)) ((c def c (c (? . 12) q send/suspend/dispatch)) q (11137 . 4)) ((c def c (c (? . 13) q client-cookie)) c (? . 14)) ((c def c (c (? . 49) q request->basic-credentials)) q (20229 . 4)) ((c form c (c (? . 42) q formlet*)) q (23532 . 2)) ((c form c (c (? . 15) q dispatch-url)) q (22697 . 6)) ((c def c (c (? . 21) q make-default-stuffer)) q (13972 . 3)) ((c def c (c (? . 2) q make-binding:file)) c (? . 17)) ((c def c (c (? . 34) q start)) q (10248 . 3)) ((c def c (c (? . 2) q headers-assq*)) q (14381 . 4)) ((c def c (c (? . 2) q bindings-assq)) q (14915 . 4)) ((c def c (c (? . 8) q response-output)) c (? . 16)) ((c form c (c (? . 7) q define/page)) q (32747 . 2)) ((c def c (c (? . 1) q hidden)) q (29008 . 5)) ((c def c (c (? . 2) q binding:file-content)) c (? . 17)) ((c form c (c (? . 18) q include-template)) q (32546 . 3)) ((c def c (c (? . 2) q request-method)) c (? . 19)) ((c def c (c (? . 27) q make-web-cell)) q (6840 . 3)) ((c form c (c (? . 15) q string-arg)) q (23179 . 2)) ((c def c (c (? . 2) q binding?)) c (? . 26)) ((c def c (c (? . 20) q request-bindings)) q (15797 . 5)) ((c def c (c (? . 21) q default-stuffer)) q (14077 . 2)) ((c def c (c (? . 40) q embed-formlet)) q (32398 . 4)) ((c def c (c (? . 9) q manager-create-instance)) c (? . 10)) ((c def c (c (? . 23) q request->digest-credentials)) q (20572 . 4)) ((c def c (c (? . 1) q radio)) q (27226 . 6)) ((c def c (c (? . 13) q client-cookie-path)) c (? . 14)) ((c def c (c (? . 38) q make-threshold-LRU-manager)) q (9807 . 7)) ((c def c (c (? . 31) q soft-state?)) q (12094 . 3)) ((c def c (c (? . 2) q request-uri)) c (? . 19)) ((c def c (c (? . 1) q select-input)) q (30870 . 9)) ((c def c (c (? . 3) q formlet-process)) q (24536 . 4)) ((c def c (c (? . 2) q header-value)) c (? . 22)) ((c def c (c (? . 23) q make-check-digest-credentials)) q (20930 . 4)) ((c def c (c (? . 13) q client-cookie-domain)) c (? . 14)) ((c def c (c (? . 24) q temporarily)) q (20070 . 2)) ((c def c (c (? . 1) q reset)) q (28663 . 5)) ((c def c (c (? . 9) q struct:exn:fail:servlet-manager:no-instance)) c (? . 28)) ((c def c (c (? . 9) q struct:exn:fail:servlet-manager:no-continuation)) c (? . 25)) ((c def c (c (? . 8) q response?)) c (? . 16)) ((c def c (c (? . 2) q request-host-port)) c (? . 19)) ((q def ((lib "web-server/stuffers/gzip.rkt") gzip-stuffer)) q (13235 . 2)) ((c def c (c (? . 9) q manager)) c (? . 10)) ((c form c (c (? . 15) q dispatch-rules)) q (21844 . 22)) ((c def c (c (? . 0) q adjust-timeout!)) q (6568 . 3)) ((c def c (c (? . 0) q send/finish)) q (5867 . 3)) ((c form c (c (? . 4) q make-web-cell)) q (11375 . 2)) ((c def c (c (? . 2) q make-request)) c (? . 19)) ((c def c (c (? . 15) q container?)) q (22921 . 3)) ((c def c (c (? . 2) q binding)) c (? . 26)) ((c def c (c (? . 27) q web-cell-shadow)) q (6961 . 4)) ((c def c (c (? . 9) q exn:fail:servlet-manager:no-instance-expiration-handler)) c (? . 28)) ((c form c (c (? . 29) q formlet)) q (23474 . 2)) ((c def c (c (? . 0) q with-errors-to-browser)) q (6360 . 5)) ((c def c (c (? . 1) q text-input)) q (25448 . 12)) ((c def c (c (? . 2) q binding:form)) c (? . 5)) ((c def c (c (? . 1) q to-symbol)) q (31672 . 3)) ((c def c (c (? . 23) q make-digest-auth-header)) q (20342 . 7)) ((c def c (c (? . 6) q file-box?)) q (11555 . 3)) ((c form c (c (? . 29) q #%#)) q (23521 . 2)) ((c def c (c (? . 30) q stuffer-sequence)) q (12741 . 4)) ((c form c (c (? . 7) q page)) q (32670 . 2)) ((c def c (c (? . 30) q id-stuffer)) q (12557 . 2)) ((c def c (c (? . 2) q struct:binding:form)) c (? . 5)) ((c def c (c (? . 20) q exists-binding?)) q (16319 . 4)) ((c def c (c (? . 2) q binding:form-value)) c (? . 5)) ((c def c (c (? . 31) q soft-state-ref)) q (12227 . 3)) ((c def c (c (? . 32) q store-write)) c (? . 33)) ((c def c (c (? . 2) q request-bindings/raw)) q (15718 . 3)) ((c def c (c (? . 2) q struct:header)) c (? . 22)) ((c def c (c (? . 34) q interface-version)) q (10117 . 2)) ((c def c (c (? . 0) q send/suspend/url/dispatch)) q (5603 . 4)) ((c def c (c (? . 35) q logout-id-cookie)) q (19125 . 4)) ((c form c (c (? . 15) q symbol-arg)) q (23199 . 2)) ((c def c (c (? . 30) q stuffer-compose)) q (12604 . 4)) ((c def c (c (? . 35) q request-id-cookie)) q (18809 . 10)) ((c def c (c (? . 30) q make-stuffer)) c (? . 36)) ((c def c (c (? . 7) q get-binding)) q (32960 . 6)) ((c def c (c (? . 37) q set-any->response!)) q (5024 . 3)) ((c form c (c (? . 15) q define-container)) q (22977 . 2)) ((c def c (c (? . 2) q binding:file-headers)) c (? . 17)) ((c form c (c (? . 11) q define-coercion-match-expander)) q (23308 . 2)) ((q def ((lib "web-server/managers/none.rkt") create-none-manager)) q (8503 . 4)) ((c def c (c (? . 13) q client-cookie-name)) c (? . 14)) ((c def c (c (? . 12) q send/suspend)) q (10749 . 3)) ((c def c (c (? . 11) q make-coerce-safe?)) q (23367 . 3)) ((q def ((lib "web-server/stuffers/base64.rkt") base64-stuffer)) q (13182 . 2)) ((c def c (c (? . 9) q exn:fail:servlet-manager:no-instance)) c (? . 28)) ((c def c (c (? . 0) q servlet-prompt)) q (6735 . 2)) ((c def c (c (? . 7) q get-bindings)) q (33173 . 6)) ((c def c (c (? . 9) q make-exn:fail:servlet-manager:no-instance)) c (? . 28)) ((c def c (c (? . 3) q cross*)) q (23918 . 4)) ((c def c (c (? . 43) q start)) q (4795 . 3)) ((c def c (c (? . 48) q static-files-path)) q (37 . 3)) ((c def c (c (? . 9) q exn:fail:servlet-manager:no-continuation-expiration-handler)) c (? . 25)) ((c def c (c (? . 2) q request-host-ip)) c (? . 19)) ((c def c (c (? . 30) q stuffer-if)) q (12879 . 4)) ((c def c (c (? . 32) q make-store)) c (? . 33)) ((c def c (c (? . 0) q send/suspend)) q (5227 . 3)) ((c def c (c (? . 27) q web-cell?)) q (6785 . 3)) ((c def c (c (? . 38) q create-LRU-manager)) q (9085 . 14)) ((c def c (c (? . 2) q binding-id)) c (? . 26)) ((c def c (c (? . 9) q make-manager)) c (? . 10)) ((c def c (c (? . 39) q HMAC-SHA1-stuffer)) q (13825 . 3)) ((c def c (c (? . 0) q send/suspend/dispatch)) q (5452 . 4)) ((c def c (c (? . 8) q response-code)) c (? . 16)) ((c def c (c (? . 37) q can-be-response?)) q (4885 . 3)) ((c def c (c (? . 32) q store-read)) c (? . 33)) ((c form c (c (? . 45) q native->serial)) q (10503 . 2)) ((c def c (c (? . 23) q username*realm->password/c)) q (20698 . 2)) ((c def c (c (? . 1) q required)) q (31290 . 3)) ((c def c (c (? . 13) q client-cookie?)) c (? . 14)) ((c def c (c (? . 46) q md5-stuffer)) q (13658 . 3)) ((c form c (c (? . 15) q dispatch-rules!)) q (23040 . 2)) ((c def c (c (? . 2) q make-binding)) c (? . 26)) ((c def c (c (? . 35) q make-id-cookie)) q (18501 . 9)) ((c def c (c (? . 2) q request-headers/raw)) c (? . 19)) ((c def c (c (? . 1) q submit)) q (28470 . 5)) ((c def c (c (? . 13) q make-client-cookie)) c (? . 14)) ((c def c (c (? . 8) q response-message)) c (? . 16)) ((c def c (c (? . 9) q make-exn:fail:servlet-manager:no-continuation)) c (? . 25)) ((c def c (c (? . 39) q HMAC-SHA1)) q (13747 . 4)) ((c def c (c (? . 40) q send/formlet)) q (31967 . 10)) ((c def c (c (? . 35) q make-secret-salt/file)) q (19260 . 3)) ((c def c (c (? . 12) q redirect/get)) q (11281 . 2)) ((c def c (c (? . 24) q see-other)) q (20112 . 2)) ((c def c (c (? . 3) q pure)) q (23729 . 3)) ((c def c (c (? . 41) q web-parameter?)) q (11956 . 3)) ((c def c (c (? . 6) q file-box)) q (11610 . 4)) ((c def c (c (? . 30) q stuffer/c)) q (12474 . 4)) ((c def c (c (? . 4) q web-cell-ref)) q (11412 . 3)) ((c def c (c (? . 30) q stuffer)) c (? . 36)) ((c def c (c (? . 0) q continuation-url?)) q (6628 . 4)) ((c form c (c (? . 41) q make-web-parameter)) q (11919 . 2)) ((c def c (c (? . 3) q formlet*/c)) q (23698 . 2)) ((c def c (c (? . 1) q to-boolean)) q (31754 . 3)) ((c form c (c (? . 42) q =>*)) q (23579 . 2)) ((c def c (c (? . 44) q make-dispatcher-tester)) q (33540 . 3)) ((c def c (c (? . 9) q exn:fail:servlet-manager:no-continuation?)) c (? . 25)) ((c def c (c (? . 9) q manager?)) c (? . 10)) ((c def c (c (? . 2) q header?)) c (? . 22)) ((c def c (c (? . 2) q request?)) c (? . 19)) ((c def c (c (? . 30) q stuffer-out)) c (? . 36)) ((c def c (c (? . 12) q send/suspend/url)) q (10633 . 3)) ((c def c (c (? . 2) q request-post-data/raw)) c (? . 19)) ((c def c (c (? . 2) q request)) c (? . 19)) ((c def c (c (? . 8) q response-seconds)) c (? . 16)) ((c def c (c (? . 3) q formlet-display)) q (24456 . 3)) ((c def c (c (? . 1) q checkbox)) q (26995 . 6)) ((c def c (c (? . 2) q request-client-ip)) c (? . 19)) ((c def c (c (? . 43) q manager)) q (4768 . 2)) ((c def c (c (? . 2) q binding:file?)) c (? . 17)) ((c def c (c (? . 13) q client-cookie-value)) c (? . 14)) ((c def c (c (? . 44) q make-servlet-tester)) q (33417 . 4)) ((c def c (c (? . 32) q dir-store)) q (13451 . 3)) ((c def c (c (? . 21) q is-url-too-big?)) q (13910 . 3)) ((c def c (c (? . 30) q struct:stuffer)) c (? . 36)) ((c form c (c (? . 15) q integer-arg)) q (23140 . 2)) ((c form c (c (? . 41) q web-parameterize)) q (12016 . 2)) ((c def c (c (? . 45) q call-with-serializable-current-continuation)) q (10331 . 4)) ((c def c (c (? . 1) q textarea-input)) q (26564 . 10)) ((c def c (c (? . 1) q default)) q (31388 . 4)) ((c def c (c (? . 27) q web-cell-ref)) q (6900 . 3)) ((c def c (c (? . 8) q struct:response)) c (? . 16)) ((c def c (c (? . 23) q username*realm->digest-HA1/c)) q (20745 . 2)) ((c def c (c (? . 1) q button)) q (29886 . 12)) ((c def c (c (? . 20) q extract-binding/single)) q (16057 . 4)) ((q def ((lib "web-server/http/xexpr.rkt") response/xexpr)) q (21104 . 17)) ((c def c (c (? . 3) q xml-forest)) q (24074 . 3)) ((c def c (c (? . 1) q to-number)) q (31590 . 3)) ((c def c (c (? . 9) q manager-continuation-peek)) c (? . 10)) ((c def c (c (? . 15) q serve/dispatch)) q (22820 . 3)) ((c def c (c (? . 9) q exn:fail:servlet-manager:no-instance?)) c (? . 28)) ((c def c (c (? . 43) q interface-version)) q (4724 . 2)) ((c def c (c (? . 2) q request-bindings/raw-promise)) c (? . 19)) ((c def c (c (? . 32) q store?)) c (? . 33)) ((c def c (c (? . 44) q tester/c)) q (33388 . 2)) ((q form ((lib "web-server/lang/native.rkt") define-native)) q (10533 . 5)) ((c def c (c (? . 9) q manager-continuation-store!)) c (? . 10)) ((c def c (c (? . 9) q struct:manager)) c (? . 10)) ((c def c (c (? . 30) q stuffer-chain)) q (13016 . 3)) ((c def c (c (? . 24) q permanently)) q (20028 . 2)) ((c form c (c (? . 15) q dispatch-rules+applies)) q (22556 . 4)) ((c def c (c (? . 24) q redirect-to)) q (19683 . 7)) ((c def c (c (? . 2) q binding:file)) c (? . 17)) ((c def c (c (? . 0) q current-servlet-continuation-expiration-handler)) q (6143 . 4)) ((c def c (c (? . 2) q header-field)) c (? . 22)) ((c def c (c (? . 8) q response)) c (? . 16)) ((c def c (c (? . 46) q hash-stuffer)) q (13548 . 4)) ((c def c (c (? . 0) q redirect/get/forget)) q (6041 . 3)) ((c def c (c (? . 6) q file-unbox)) q (11699 . 3)) ((c def c (c (? . 47) q make-cookie)) q (17697 . 17)) ((c def c (c (? . 1) q to-string)) q (31509 . 3)) ((c form c (c (? . 15) q number-arg)) q (23120 . 2)) ((c def c (c (? . 8) q response/output)) q (17080 . 13)) ((c def c (c (? . 48) q no-web-browser)) q (0 . 2)) ((c def c (c (? . 32) q store)) c (? . 33)) ((c def c (c (? . 1) q checkbox-group)) q (28021 . 11)) ((c def c (c (? . 0) q send/suspend/url)) q (5339 . 3)) ((c def c (c (? . 3) q cross)) q (23797 . 4)) ((c form c (c (? . 45) q serial->native)) q (10473 . 2)) ((c def c (c (? . 3) q tag-xexpr)) q (24287 . 5)) ((c def c (c (? . 2) q struct:binding)) c (? . 26)) ((c def c (c (? . 34) q stuffer)) q (10168 . 2)) ((c form c (c (? . 7) q embed/url)) q (32692 . 2)) ((c def c (c (? . 34) q manager)) q (10221 . 2)) ((c def c (c (? . 1) q multiselect-input)) q (30342 . 11)) ((c def c (c (? . 8) q TEXT/HTML-MIME-TYPE)) q (17660 . 2)) ((c def c (c (? . 20) q extract-bindings)) q (16186 . 4)) ((c def c (c (? . 23) q password->digest-HA1)) q (20794 . 4)) ((c def c (c (? . 46) q hash-fun/c)) q (13517 . 2)) ((c def c (c (? . 7) q binding-format/c)) q (32923 . 2)) ((q def ((lib "web-server/servlet-env.rkt") serve/servlet)) q (109 . 76)) ((c def c (c (? . 12) q send/suspend/hidden)) q (10864 . 3)) ((c def c (c (? . 31) q make-soft-state)) q (12151 . 3)) ((c def c (c (? . 2) q header)) c (? . 22)) ((c def c (c (? . 30) q stuffer-in)) c (? . 36)) ((c form c (c (? . 31) q soft-state)) q (12292 . 2)) ((c def c (c (? . 49) q make-basic-auth-header)) q (20152 . 3)) ((c def c (c (? . 8) q response-headers)) c (? . 16)) ((c def c (c (? . 1) q file-upload)) q (28855 . 4)) ((c def c (c (? . 1) q password-input)) q (25996 . 12)) ((c def c (c (? . 2) q binding:file-filename)) c (? . 17)) ((c form c (c (? . 15) q real-arg)) q (23161 . 2)) ((c def c (c (? . 1) q input)) q (24867 . 14)) ((c def c (c (? . 2) q struct:binding:file)) c (? . 17)) ((q def ((lib "web-server/stuffers/serialize.rkt") serialize-stuffer)) q (13119 . 2)) ((c def c (c (? . 1) q input-int)) q (31881 . 2)) ((c def c (c (? . 13) q request-cookies)) q (19599 . 3))))
procedure
(no-web-browser) -> void
procedure
(static-files-path path) -> void
path : path-string?
procedure
(serve/servlet
start
[#:command-line? command-line?
#:connection-close? connection-close?
#:launch-browser? launch-browser?
#:quit? quit?
#:banner? banner?
#:listen-ip listen-ip
#:port port
#:max-waiting max-waiting
#:servlet-path servlet-path
#:servlet-regexp servlet-regexp
#:stateless? stateless?
#:stuffer stuffer
#:manager manager
#:servlet-namespace servlet-namespace
#:server-root-path server-root-path
#:extra-files-paths extra-files-paths
#:servlets-root servlets-root
#:servlet-current-directory servlet-current-directory
#:file-not-found-responder file-not-found-responder
#:servlet-loading-responder responders-servlet-loading
#:servlet-responder responders-servlet
#:mime-types-path mime-types-path
#:ssl? ssl?
#:ssl-cert ssl-cert
#:ssl-key ssl-key
#:log-file log-file
#:log-format log-format])
-> void
start : (request? . -> . can-be-response?)
command-line? : boolean? = #f
connection-close? : boolean? = #f
launch-browser? : boolean? = (not command-line?)
quit? : boolean? = (not command-line?)
banner? : boolean? = (not command-line?)
listen-ip : (or/c false/c string?) = "127.0.0.1"
port : listen-port-number? = 8000
max-waiting : exact-nonnegative-integer? = 511
servlet-path : string? = "/servlets/standalone.rkt"
servlet-regexp : regexp? = (regexp
(format
"^~a$"
(regexp-quote servlet-path)))
stateless? : boolean? = #f
stuffer : (stuffer/c serializable? bytes?) = default-stuffer
manager : manager?
= (make-threshold-LRU-manager #f (* 128 1024 1024))
servlet-namespace : (listof module-path?) = empty
server-root-path : path-string?
= (collection-path "web-server" "default-web-root")
extra-files-paths : (listof path-string?)
= (list (build-path server-root-path "htdocs"))
servlets-root : path-string?
= (build-path server-root-path "htdocs")
servlet-current-directory : path-string? = servlets-root
file-not-found-responder : (request? . -> . can-be-response?)
= (gen-file-not-found-responder
(build-path
server-root-path
"conf"
"not-found.html"))
responders-servlet-loading : (url? any/c . -> . can-be-response?)
= servlet-loading-responder
responders-servlet : (url? any/c . -> . can-be-response?)
= servlet-error-responder
mime-types-path : path-string? = ....
ssl? : boolean? = #f
ssl-cert : (or/c false/c path-string?)
= (and ssl? (build-path server-root-path "server-cert.pem"))
ssl-key : (or/c false/c path-string?)
= (and ssl? (build-path server-root-path "private-key.pem"))
log-file : (or/c false/c path-string?) = #f
log-format : (or/c log-format/c format-req/c)
= 'apache-default
value
interface-version : (one-of/c 'v2)
value
manager : manager?
procedure
(start initial-request) -> can-be-response?
initial-request : request?
procedure
(can-be-response? x) -> boolean?
x : any/c
procedure
(any->response x) -> (or/c false/c response?)
x : any/c
procedure
(set-any->response! new-any->response) -> void
new-any->response : (-> any/c (or/c false/c response?))
procedure
(send/back response) -> void?
response : can-be-response?
procedure
(send/suspend make-response) -> request?
make-response : (string? . -> . can-be-response?)
procedure
(send/suspend/url make-response) -> request?
make-response : (url? . -> . can-be-response?)
procedure
(send/suspend/dispatch make-response) -> any
make-response : (((request? . -> . any) . -> . string?) . ->
. can-be-response?)
procedure
(send/suspend/url/dispatch make-response) -> any
make-response : (((request? . -> . any) . -> . url?) . ->
. can-be-response?)
procedure
(send/forward make-response) -> request?
make-response : (string? . -> . can-be-response?)
procedure
(send/finish response) -> void?
response : can-be-response?
procedure
(redirect/get [#:headers hs]) -> request?
hs : (listof header?) = empty
procedure
(redirect/get/forget [#:headers hs]) -> request?
hs : (listof header?) = empty
value
current-servlet-continuation-expiration-handler
: (parameter/c (or/c false/c
(request? . -> . can-be-response?)))
procedure
(clear-continuation-table!) -> void?
procedure
(with-errors-to-browser send/finish-or-back
thunk) -> any
send/finish-or-back : (can-be-response? . -> . request?)
thunk : (-> any)
procedure
(adjust-timeout! t) -> void?
t : number?
procedure
(continuation-url? u)
-> (or/c false/c (list/c number? number? number?))
u : url?
value
servlet-prompt : continuation-prompt-tag?
procedure
(web-cell? v) -> boolean?
v : any/c
procedure
(make-web-cell v) -> web-cell?
v : any/c
procedure
(web-cell-ref wc) -> any/c
wc : web-cell?
procedure
(web-cell-shadow wc v) -> void
wc : web-cell?
v : any/c
struct
(struct manager (create-instance
adjust-timeout!
clear-continuations!
continuation-store!
continuation-lookup
continuation-peek)
#:extra-constructor-name make-manager)
create-instance : ((-> void) . -> . number?)
adjust-timeout! : (number? number? . -> . void)
clear-continuations! : (number? . -> . void)
continuation-store! : (number? any/c
(or/c false/c
(request? . -> . can-be-response?))
. -> . (list/c number? number?))
continuation-lookup : (number? number? number? . -> . any/c)
continuation-peek : (number? number? number? . -> . any/c)
struct
(struct exn:fail:servlet-manager:no-instance exn:fail
(expiration-handler)
#:extra-constructor-name
make-exn:fail:servlet-manager:no-instance)
expiration-handler : (or/c false/c
(request? . -> . can-be-response?))
struct
(struct exn:fail:servlet-manager:no-continuation exn:fail
(expiration-handler)
#:extra-constructor-name
make-exn:fail:servlet-manager:no-continuation)
expiration-handler : (or/c false/c
(request? . -> . can-be-response?))
procedure
(create-none-manager instance-expiration-handler) -> manager?
instance-expiration-handler : (or/c false/c
(request? . -> . can-be-response?))
procedure
(create-timeout-manager instance-exp-handler
instance-timeout
continuation-timeout) -> manager?
instance-exp-handler : (or/c false/c
(request? . -> . can-be-response?))
instance-timeout : number?
continuation-timeout : number?
procedure
(create-LRU-manager instance-expiration-handler
check-interval
collect-interval
collect?
[#:initial-count initial-count
#:inform-p inform-p]) -> manager?
instance-expiration-handler : (or/c false/c
(request? . -> . can-be-response?))
check-interval : integer?
collect-interval : integer?
collect? : (-> boolean?)
initial-count : integer? = 1
inform-p : (integer? . -> . void) = (lambda _ (void))
procedure
(make-threshold-LRU-manager instance-expiration-handler
memory-threshold)
-> manager?
instance-expiration-handler : (or/c false/c
(request? . -> . can-be-response?))
memory-threshold : number?
value
interface-version : (one-of/c 'stateless)
value
stuffer : (stuffer/c serializable? bytes?)
value
manager : manager?
procedure
(start initial-request) -> response?
initial-request : request?
procedure
(call-with-serializable-current-continuation response-generator)
-> any
response-generator : (continuation? . -> . any)
syntax
(serial->native expr)
syntax
(native->serial expr)
syntax
(define-native (native arg-spec ...) original)
arg-spec : ho
arg-spec : _
procedure
(send/suspend/url response-generator) -> request?
response-generator : (url? . -> . response?)
procedure
(send/suspend response-generator) -> request?
response-generator : (string? . -> . response?)
procedure
(send/suspend/hidden response-generator) -> request?
response-generator : (url? xexpr/c . -> . response?)
procedure
(send/suspend/url/dispatch make-response) -> any
make-response : (((request? . -> . any) . -> . url?) . -> . response?)
procedure
(send/suspend/dispatch make-response) -> any
make-response : (((request? . -> . any) . -> . string?) . ->
. response?)
procedure
(redirect/get) -> request?
procedure
(web-cell? v) -> boolean?
v : any/c
syntax
(make-web-cell default-expr)
procedure
(web-cell-ref wc) -> any/c
wc : web-cell?
procedure
(web-cell-shadow wc v) -> void
wc : web-cell?
v : any/c
procedure
(file-box? v) -> boolean?
v : any/c
procedure
(file-box p v) -> file-box?
p : path-string?
v : serializable?
procedure
(file-unbox fb) -> serializable?
fb : file-box?
procedure
(file-box-set? fb) -> boolean?
fb : file-box?
procedure
(file-box-set! fb v) -> void
fb : file-box?
v : serializable?
syntax
(make-web-parameter default)
procedure
(web-parameter? v) -> boolean?
v : any/c
syntax
(web-parameterize ([web-parameter-expr value-expr] ...) expr ...)
procedure
(soft-state? v) -> boolean?
v : any/c
procedure
(make-soft-state thnk) -> soft-state?
thnk : (-> any/c)
procedure
(soft-state-ref ss) -> any/c
ss : soft-state?
syntax
(soft-state expr ...)
struct
(struct stuffer (in out)
#:extra-constructor-name make-stuffer)
in : (any/c . -> . any/c)
out : (any/c . -> . any/c)
procedure
(stuffer/c dom rng) -> contract?
dom : any/c
rng : any/c
value
id-stuffer : (stuffer/c any/c any/c)
procedure
(stuffer-compose g f) -> (stuffer/c any/c any/c)
g : (stuffer/c any/c any/c)
f : (stuffer/c any/c any/c)
procedure
(stuffer-sequence f g) -> (stuffer/c any/c any/c)
f : (stuffer/c any/c any/c)
g : (stuffer/c any/c any/c)
procedure
(stuffer-if c f) -> (stuffer/c bytes? bytes?)
c : (bytes? . -> . boolean?)
f : (stuffer/c bytes? bytes?)
procedure
(stuffer-chain x ...) -> stuffer?
x : (or/c stuffer? (bytes? . -> . boolean?))
value
serialize-stuffer : (stuffer/c serializable? bytes?)
value
base64-stuffer : (stuffer/c bytes? bytes?)
value
gzip-stuffer : (stuffer/c bytes? bytes?)
struct
(struct store (write read)
#:extra-constructor-name make-store)
write : (bytes? bytes? . -> . void)
read : (bytes? . -> . bytes?)
procedure
(dir-store root) -> store?
root : path-string?
value
hash-fun/c : contract?
procedure
(hash-stuffer H store) -> (stuffer/c bytes? bytes?)
H : hash-fun/c
store : store?
procedure
(md5-stuffer root) -> (stuffer/c bytes? bytes?)
root : path-string?
procedure
(HMAC-SHA1 kb db) -> bytes?
kb : bytes?
db : bytes?
procedure
(HMAC-SHA1-stuffer kb) -> (stuffer/c bytes? bytes?)
kb : bytes?
procedure
(is-url-too-big? v) -> boolean?
v : bytes?
procedure
(make-default-stuffer root) -> (stuffer/c serializable? bytes?)
root : path-string?
value
default-stuffer : (stuffer/c serializable? bytes?)
struct
(struct header (field value)
#:extra-constructor-name make-header)
field : bytes?
value : bytes?
procedure
(headers-assq id heads) -> (or/c false/c header?)
id : bytes?
heads : (listof header?)
procedure
(headers-assq* id heads) -> (or/c false/c header?)
id : bytes?
heads : (listof header?)
struct
(struct binding (id)
#:extra-constructor-name make-binding)
id : bytes?
struct
(struct binding:form binding (value)
#:extra-constructor-name make-binding:form)
value : bytes?
struct
(struct binding:file binding (filename headers content)
#:extra-constructor-name make-binding:file)
filename : bytes?
headers : (listof header?)
content : bytes?
procedure
(bindings-assq id binds) -> (or/c false/c binding?)
id : bytes?
binds : (listof binding?)
procedure
(bindings-assq-all id binds) -> (listof binding?)
id : bytes?
binds : (listof binding?)
struct
(struct request (method
uri
headers/raw
bindings/raw-promise
post-data/raw
host-ip
host-port
client-ip)
#:extra-constructor-name make-request)
method : bytes?
uri : url?
headers/raw : (listof header?)
bindings/raw-promise : (promise/c (listof binding?))
post-data/raw : (or/c false/c bytes?)
host-ip : string?
host-port : number?
client-ip : string?
procedure
(request-bindings/raw r) -> (listof binding?)
r : request?
procedure
(request-bindings req)
-> (listof (or/c (cons/c symbol? string?)
(cons/c symbol? bytes?)))
req : request?
procedure
(request-headers req) -> (listof (cons/c symbol? string?))
req : request?
procedure
(extract-binding/single id binds) -> string?
id : symbol?
binds : (listof (cons/c symbol? string?))
procedure
(extract-bindings id binds) -> (listof string?)
id : symbol?
binds : (listof (cons/c symbol? string?))
procedure
(exists-binding? id binds) -> boolean?
id : symbol?
binds : (listof (cons/c symbol? string))
struct
(struct response (code message seconds mime headers output))
code : number?
message : bytes?
seconds : number?
mime : (or/c false/c bytes?)
headers : (listof header?)
output : (output-port? . -> . void)
procedure
(response/full code
message
seconds
mime
headers
body) -> response?
code : number?
message : bytes?
seconds : number?
mime : (or/c false/c bytes?)
headers : (listof header?)
body : (listof bytes?)
procedure
(response/output output
[#:code code
#:message message
#:seconds seconds
#:mime-type mime-type
#:headers headers]) -> response?
output : (-> output-port? void?)
code : number? = 200
message : bytes? = #"Okay"
seconds : number? = (current-seconds)
mime-type : (or/c bytes? #f) = TEXT/HTML-MIME-TYPE
headers : (listof header?) = '()
value
TEXT/HTML-MIME-TYPE : bytes?
procedure
(make-cookie name
value
[#:comment comment
#:domain domain
#:max-age max-age
#:path path
#:expires expires
#:secure? secure?]) -> cookie?
name : cookie-name?
value : cookie-value?
comment : (or/c false/c string?) = #f
domain : (or/c false/c valid-domain?) = #f
max-age : (or/c false/c exact-nonnegative-integer?) = #f
path : (or/c false/c string?) = #f
expires : (or/c false/c string?) = #f
secure? : (or/c false/c boolean?) = #f
procedure
(cookie->header c) -> header?
c : cookie?
procedure
(make-id-cookie name
secret-salt
value
[#:path path]) -> cookie?
name : cookie-name?
secret-salt : bytes?
value : cookie-value?
path : (or/c false/c string?) = #f
procedure
(request-id-cookie name
secret-salt
request
#:timeout timeout)
-> (or/c false/c cookie-value?)
name : cookie-name?
secret-salt : bytes?
request : request?
timeout : +inf.0
procedure
(logout-id-cookie name [#:path path]) -> cookie?
name : cookie-name?
path : (or/c false/c string?) = #f
procedure
(make-secret-salt/file secret-salt-path) -> bytes?
secret-salt-path : path-string?
struct
(struct client-cookie (name value domain path)
#:extra-constructor-name make-client-cookie)
name : string?
value : string?
domain : (or/c false/c valid-domain?)
path : (or/c false/c string?)
procedure
(request-cookies req) -> (listof client-cookie?)
req : request?
procedure
(redirect-to uri
[perm/temp
#:headers headers]) -> response?
uri : non-empty-string?
perm/temp : redirection-status? = temporarily
headers : (listof header?) = (list)
procedure
(redirection-status? v) -> boolean?
v : any/c
value
permanently : redirection-status?
value
temporarily : redirection-status?
value
see-other : redirection-status?
procedure
(make-basic-auth-header realm) -> header?
realm : string?
procedure
(request->basic-credentials req)
-> (or/c false/c (cons/c bytes? bytes?))
req : request?
procedure
(make-digest-auth-header realm
private-key
opaque) -> header?
realm : string?
private-key : string?
opaque : string?
procedure
(request->digest-credentials req)
-> (or/c false/c (listof (cons/c symbol? string?)))
req : request?
value
username*realm->password/c : contract?
value
username*realm->digest-HA1/c : contract?
procedure
(password->digest-HA1 lookup-password)
-> username*realm->digest-HA1/c
lookup-password : username*realm->password/c
procedure
(make-check-digest-credentials lookup-HA1)
-> (string? (listof (cons/c symbol? string?)) . -> . boolean?)
lookup-HA1 : username*realm->digest-HA1/c
procedure
(response/xexpr xexpr
[#:code code
#:message message
#:seconds seconds
#:mime-type mime-type
#:headers headers
#:cookies cookies
#:preamble preamble]) -> response?
xexpr : xexpr/c
code : number? = 200
message : bytes? = #"Okay"
seconds : number? = (current-seconds)
mime-type : (or/c false/c bytes?) = TEXT/HTML-MIME-TYPE
headers : (listof header?) = empty
cookies : (listof cookie?) = empty
preamble : bytes? = #""
syntax
(dispatch-rules
dispatch-clause ...
maybe-else-clause)
dispatch-clause = [dispatch-pattern maybe-method dispatch-fun]
dispatch-pattern = ()
| (string . dispatch-pattern)
| (bidi-match-expander ... . dispatch-pattern)
| (bidi-match-expander . dispatch-pattern)
maybe-method =
| #:method method
method = pat
maybe-else-clause =
| [else else-fun]
else-fun : (request? . -> . any)
dispatch-fun : (request? any/c ... . -> . any)
syntax
(dispatch-rules+applies
dispatch-clause ...
maybe-else-clause)
syntax
(dispatch-case
dispatch-clause ...
maybe-else-clause)
syntax
(dispatch-url
[dispatch-pattern dispatch-fun]
...)
dispatch-fun : (request? any/c ... . -> . any)
procedure
(serve/dispatch dispatch) -> void
dispatch : (request? . -> . can-be-response?)
procedure
(container? x) -> boolean?
x : any/c
syntax
(define-container container-id (dispatch-id url-id))
syntax
(dispatch-rules! container-expr [dispatch-pattern dispatch-fun] ...)
syntax
(number-arg)
syntax
(integer-arg)
syntax
(real-arg)
syntax
(string-arg)
syntax
(symbol-arg)
syntax
(define-bidi-match-expander id in-xform out-xform)
syntax
bidi-match-going-in?
syntax
(define-coercion-match-expander id test? coerce)
procedure
(make-coerce-safe? coerce) -> (any/c . -> . boolean?)
coerce : (any/c . -> . any/c)
syntax
(formlet rendering-xexpr yields-expr)
syntax
#%#
syntax
(formlet* rendering-expr yields-expr)
syntax
=>*
value
xexpr-forest/c : contract?
procedure
(formlet/c content ...) -> contract?
content : any/c
value
formlet*/c : contract?
procedure
(pure value) -> (formlet/c any/c)
value : any/c
procedure
(cross f g) -> (formlet/c any/c ...)
f : (formlet/c procedure?)
g : (formlet/c any/c ...)
procedure
(cross* f g ...) -> (formlet/c any/c)
f : (formlet/c (() () #:rest (listof any/c) . ->* . any/c))
g : (formlet/c any/c)
procedure
(xml-forest r) -> (formlet/c procedure?)
r : xexpr-forest/c
procedure
(xml r) -> (formlet/c procedure?)
r : xexpr/c
procedure
(text r) -> (formlet/c procedure?)
r : string?
procedure
(tag-xexpr tag attrs inner) -> (formlet/c any/c)
tag : symbol?
attrs : (listof (list/c symbol? string?))
inner : (formlet/c any/c)
procedure
(formlet-display f) -> xexpr-forest/c
f : (formlet/c any/c)
procedure
(formlet-process f r) -> any/c ...
f : (formlet/c any/c ...)
r : request?
procedure
(make-input render) -> (formlet/c (or/c false/c binding?))
render : (string? . -> . xexpr/c)
procedure
(make-input* render) -> (formlet/c (listof binding?))
render : (string? . -> . xexpr/c)
procedure
(input #:type type
[#:value value
#:size size
#:max-length max-length
#:read-only? read-only?
#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
type : string?
value : (or/c false/c bytes? string?) = #f
size : (or/c false/c exact-nonnegative-integer?) = #f
max-length : (or/c false/c exact-nonnegative-integer?) = #f
read-only? : boolean? = #f
attrs : (listof (list/c symbol? string?)) = empty
procedure
(text-input [#:value value
#:size size
#:max-length max-length
#:read-only? read-only?
#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
value : (or/c false/c bytes? string?) = #f
size : (or/c false/c exact-nonnegative-integer?) = #f
max-length : (or/c false/c exact-nonnegative-integer?) = #f
read-only? : boolean? = #f
attrs : (listof (list/c symbol? string?)) = empty
procedure
(password-input [#:value value
#:size size
#:max-length max-length
#:read-only? read-only?
#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
value : (or/c false/c bytes? string?) = #f
size : (or/c false/c exact-nonnegative-integer?) = #f
max-length : (or/c false/c exact-nonnegative-integer?) = #f
read-only? : boolean? = #f
attrs : (listof (list/c symbol? string?)) = empty
procedure
(textarea-input [#:value value
#:rows rows
#:cols cols
#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
value : (or/c false/c bytes? string?) = #f
rows : (or/c false/c number?) = #f
cols : (or/c false/c number?) = #f
attrs : (listof (list/c symbol? string?)) = empty
procedure
(checkbox value checked? [#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
value : (or/c bytes? string?)
checked? : boolean?
attrs : (listof (list/c symbol? string?)) = empty
procedure
(radio value checked? [#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
value : (or/c bytes? string?)
checked? : boolean?
attrs : (listof (list/c symbol? string?)) = empty
procedure
(radio-group l
[#:attributes attrs
#:checked? checked?
#:display display
#:wrap wrap]) -> (formlet/c any/c)
l : sequence?
attrs : (any/c . -> . (listof (list/c symbol? string?)))
= (λ (x) empty)
checked? : (any/c . -> . boolean?) = (λ (x) #f)
display : (any/c . -> . xexpr/c) = (λ (x) x)
wrap : (any/c any/c . -> . xexpr/c) = (λ (x y) (list x y))
procedure
(checkbox-group l
[#:attributes attrs
#:checked? checked?
#:display display])
-> (formlet/c (listof any/c))
l : sequence?
attrs : (any/c . -> . (listof (list/c symbol? string?)))
= (λ (x) empty)
checked? : (any/c . -> . boolean?) = (λ (x) #f)
display : (any/c . -> . xexpr/c) = (λ (x) x)
procedure
(submit value [#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
value : (or/c bytes? string?)
attrs : (listof (list/c symbol? string?)) = empty
procedure
(reset value [#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
value : (or/c bytes? string?)
attrs : (listof (list/c symbol? string?)) = empty
procedure
(file-upload [#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
attrs : (listof (list/c symbol? string?)) = empty
procedure
(hidden value [#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
value : (or/c bytes? string?)
attrs : (listof (list/c symbol? string?)) = empty
procedure
(img alt
src
[#:height height
#:longdesc ldesc
#:usemap map
#:width width
#:attributes attrs]) -> (formlet/c (or/c false/c binding?))
alt : (or/c bytes? string?)
src : (or/c bytes? string?)
height : (or/c false/c exact-nonnegative-integer?) = #f
ldesc : (or/c false/c bytes? string?) = #f
map : (or/c false/c bytes? string?) = #f
width : (or/c false/c exact-nonnegative-integer?) = #f
attrs : (listof (list/c symbol? string?)) = empty
procedure
(button type
button-text
[#:disabled disabled
#:value value
#:attributes attrs])
-> (formlet/c (or/c false/c binding?))
type : (or/c bytes? string?)
button-text : (or/c bytes? string?)
disabled : boolean? = #f
value : (or/c false/c bytes? string?) = #f
attrs : (listof (list/c symbol? string?)) = empty
procedure
(multiselect-input l
[#:attributes attrs
#:multiple? multiple?
#:selected? selected?
#:display display]) -> (formlet/c list?)
l : sequence?
attrs : (listof (list/c symbol? string?)) = empty
multiple? : boolean? = #t
selected? : (any/c . -> . boolean?) = (λ (x) #f)
display : (any/c . -> . xexpr/c) = (λ (x) x)
procedure
(select-input l
[#:attributes attrs
#:selected? selected?
#:display display]) -> (formlet/c any/c)
l : sequence?
attrs : (listof (list/c symbol? string?)) = empty
selected? : (any/c . -> . boolean?) = (λ (x) #f)
display : (any/c . -> . xexpr/c) = (λ (x) x)
procedure
(required f) -> (formlet/c bytes?)
f : (formlet/c (or/c false/c binding?))
procedure
(default def f) -> (formlet/c bytes?)
def : bytes?
f : (formlet/c (or/c false/c binding?))
procedure
(to-string f) -> (formlet/c string?)
f : (formlet/c bytes?)
procedure
(to-number f) -> (formlet/c number?)
f : (formlet/c string?)
procedure
(to-symbol f) -> (formlet/c symbol?)
f : (formlet/c string?)
procedure
(to-boolean f) -> (formlet/c boolean?)
f : (formlet/c bytes?)
value
input-string : (formlet/c string?)
value
input-int : (formlet/c integer?)
value
input-symbol : (formlet/c symbol?)
procedure
(send/formlet f
[#:method method
#:wrap wrapper]) -> any/c ...
f : (formlet/c any/c ...)
method : (or/c "GET" "POST" "get" "post") = "POST"
wrapper : (xexpr/c . -> . xexpr/c)
= (lambda (form-xexpr)
`(html (head (title "Form Entry"))
(body ,form-xexpr)))
procedure
(embed-formlet embed/url f) -> xexpr/c
embed/url : ((request? . -> . any) . -> . string?)
f : (formlet/c any/c ...)
syntax
(include-template path-spec)
(include-template #:command-char command-char path-spec)
syntax
(in x xs e ...)
syntax
(page e ...)
syntax
embed/url
syntax
(lambda/page formals e ...)
syntax
(define/page (id . formals) e ...)
parameter
(current-request) -> request?
(current-request req) -> void?
req : request?
value
binding-id/c : contract?
value
binding-format/c : contract?
procedure
(get-binding id [req #:format format])
-> (or/c false/c string? bytes? binding?)
id : binding-id/c
req : request? = (current-request)
format : binding-format/c = 'string
procedure
(get-bindings id [req #:format format])
-> (listof (or/c string? bytes? binding?))
id : binding-id/c
req : request? = (current-request)
format : binding-format/c = 'string
value
tester/c : contract?
procedure
(make-servlet-tester servlet) -> tester/c
servlet : (-> request?
can-be-response?)
procedure
(make-dispatcher-tester d) -> tester/c
d : dispatcher/c
|