Annotation of parser3/tests/464.html, revision 1.3
1.2 moko 1: # ^response:stream[]: the headers go with the first part, the result of @main is not sent
1.3 ! moko 2: @main[][before;error;failed]
1.1 moko 3: not sent
1.3 ! moko 4: # the first field of the response is not a header: see the failed start below
! 5: $response:x-table[^table::create{a}]
1.1 moko 6: $response:x-test[sent with the first part]
1.3 ! moko 7: $before[$response:started]
! 8: # $response:started can not be assigned
! 9: ^try{ $response:started[stream] }{ $exception.handled(true) $error[$exception.comment] }
1.1 moko 10: # a part is checked before the headers are sent
1.2 moko 11: ^try{ ^response:stream(true) }{ $exception.handled(true) $response:x-bool[$exception.comment] }
12: ^try{ ^response:stream[^file::stat[464.html]] }{ $exception.handled(true) $response:x-stat[$exception.comment] }
1.3 ! moko 13: # the headers are prepared before the state is set: a failure is an ordinary error, nothing is sent
! 14: ^try{ ^response:stream[never sent] }{ $exception.handled(true) $failed[$exception.comment, started: [$response:started]] }
! 15: $response:x-table[ok]
1.2 moko 16: ^response:stream[1. string, untainted: ^taint[<b>]
1.1 moko 17: ]
18: not sent either
1.2 moko 19: ^response:stream[^file::create[text;part.txt;2. file
1.1 moko 20: ]]
21: $response:x-late[too late, not sent]
1.2 moko 22: ^response:stream[3. number and void: |]
23: ^response:stream(3)
24: ^response:stream[$void]
25: ^response:stream[|
1.1 moko 26: ]
1.2 moko 27: ^check{^response:stream[$.a[1]]}
28: ^check{^response:stream[^table::create{a}]}
29: ^check{^response:stream{code}}
1.3 ! moko 30: ^response:stream[5. state, before the first part: [$before], assignment: $error, failed start: $failed, now: [$response:started]
! 31: ]
! 32: ^response:stream[6. the last part
1.1 moko 33: ]
34:
35: @check[code]
1.2 moko 36: ^try{$code}{ $exception.handled(true) ^response:stream[4. $exception.comment^#0A] }
1.1 moko 37:
38: @postprocess[body]
1.2 moko 39: ^response:stream[not sent: @postprocess is not called]
E-mail: