Annotation of parser3/tests/464.html, revision 1.2
1.2 ! moko 1: # ^response:stream[]: the headers go with the first part, the result of @main is not sent
1.1 moko 2: @main[]
3: not sent
4: $response:x-test[sent with the first part]
5: # a part is checked before the headers are sent
1.2 ! moko 6: ^try{ ^response:stream(true) }{ $exception.handled(true) $response:x-bool[$exception.comment] }
! 7: ^try{ ^response:stream[^file::stat[464.html]] }{ $exception.handled(true) $response:x-stat[$exception.comment] }
! 8: ^response:stream[1. string, untainted: ^taint[<b>]
1.1 moko 9: ]
10: not sent either
1.2 ! moko 11: ^response:stream[^file::create[text;part.txt;2. file
1.1 moko 12: ]]
13: $response:x-late[too late, not sent]
1.2 ! moko 14: ^response:stream[3. number and void: |]
! 15: ^response:stream(3)
! 16: ^response:stream[$void]
! 17: ^response:stream[|
1.1 moko 18: ]
1.2 ! moko 19: ^check{^response:stream[$.a[1]]}
! 20: ^check{^response:stream[^table::create{a}]}
! 21: ^check{^response:stream{code}}
! 22: ^response:stream[5. the last part
1.1 moko 23: ]
24:
25: @check[code]
1.2 ! moko 26: ^try{$code}{ $exception.handled(true) ^response:stream[4. $exception.comment^#0A] }
1.1 moko 27:
28: @postprocess[body]
1.2 ! moko 29: ^response:stream[not sent: @postprocess is not called]
E-mail: