http-nu 0.15.0

The surprisingly performant, Nushell-scriptable, cross.stream-powered, Datastar-ready HTTP server that fits in your back pocket.
Documentation
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
use std::sync::Arc;
use std::time::Instant;

use arc_swap::ArcSwap;
use http_body_util::{BodyExt, Empty, Full};
use hyper::{body::Bytes, Request};
use tokio::time::Duration;

use crate::commands::{MjCommand, PrintCommand, StaticCommand, ToSse};
use crate::handler::{handle, AppConfig};

fn default_config() -> Arc<AppConfig> {
    Arc::new(AppConfig {
        trusted_proxies: vec![],
        datastar: false,
        dev: false,
    })
}

#[tokio::test]
async fn test_handle() {
    let engine = test_engine(r#"{|req| "hello world" }"#);

    let req = Request::builder()
        .method("GET")
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(
        Arc::new(ArcSwap::from_pointee(engine)),
        None,
        default_config(),
        req,
    )
    .await
    .unwrap();
    assert_eq!(resp.status(), 200);

    let body = resp.into_body().collect().await.unwrap().to_bytes();
    let body = String::from_utf8(body.to_vec()).unwrap();
    assert!(body.contains("hello world"));
}

#[tokio::test]
async fn test_handle_with_response_start() {
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
        match $req {
            {uri: "/resource" method: "POST"} => {
                "created resource" | metadata set { merge {'http.response': {
                    status: 201
                    headers: {
                        "Content-Type": "text/plain"
                        "X-Custom": "test"
                    }
                }}}
            }
        }
    }"#,
    )));

    // Test successful POST to /resource
    let req = Request::builder()
        .method("POST")
        .uri("/resource")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine.clone(), None, default_config(), req)
        .await
        .unwrap();

    // Verify response metadata
    assert_eq!(resp.status(), 201);
    assert_eq!(resp.headers()["content-type"], "text/plain");
    assert_eq!(resp.headers()["x-custom"], "test");

    // Verify body
    let body = resp.into_body().collect().await.unwrap().to_bytes();
    assert_eq!(
        String::from_utf8(body.to_vec()).unwrap(),
        "created resource"
    );
}

#[tokio::test]
async fn test_handle_post() {
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(r#"{|req| $in }"#)));

    // Create POST request with a body
    let body = "Hello from the request body!";
    let req = Request::builder()
        .method("POST")
        .uri("/echo")
        .body(Full::new(Bytes::from(body)))
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();

    // Verify response status
    assert_eq!(resp.status(), 200);

    // Verify body is echoed back
    let resp_body = resp.into_body().collect().await.unwrap().to_bytes();
    assert_eq!(String::from_utf8(resp_body.to_vec()).unwrap(), body);
}

#[tokio::test]
async fn test_handle_streaming() {
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
            1..3 | each { |n| sleep 0.1sec; $n }
        }"#,
    )));

    let req = Request::builder()
        .method("GET")
        .uri("/stream")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();
    assert_eq!(resp.status(), 200);

    let mut body = resp.into_body();
    let start_time = Instant::now();
    let mut collected = Vec::new();

    loop {
        match body.frame().await {
            Some(Ok(frame)) => {
                if let Some(data) = frame.data_ref() {
                    let chunk_str = String::from_utf8(data.to_vec()).unwrap();
                    let elapsed = start_time.elapsed();
                    collected.push((chunk_str.trim().to_string(), elapsed));
                }
            }
            Some(Err(e)) => panic!("Error reading frame: {e}"),
            None => break,
        }
    }

    // Should have 3 chunks
    assert_eq!(collected.len(), 3);
    assert_timing_sequence(&collected);
}

fn assert_timing_sequence(timings: &[(String, Duration)]) {
    // Check values arrive in sequence
    for (i, (value, _)) in timings.iter().enumerate() {
        assert_eq!(
            value,
            &(i + 1).to_string(),
            "Values should arrive in sequence"
        );
    }

    // Check each gap is roughly 100ms
    for i in 1..timings.len() {
        let gap = timings[i].1 - timings[i - 1].1;
        assert!(
            gap >= Duration::from_millis(50) && gap <= Duration::from_millis(300),
            "Gap between chunk {} and {} was {:?}, expected ~100ms",
            i,
            i + 1,
            gap
        );
    }
}

#[tokio::test]
async fn test_content_type_precedence() {
    // 1. Explicit header should take precedence
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
           {foo: "bar"} | metadata set { merge {'http.response': {headers: {"Content-Type": "text/plain"}}}}
       }"#,
    )));
    let req1 = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();
    let resp1 = handle(engine.clone(), None, default_config(), req1)
        .await
        .unwrap();
    assert_eq!(resp1.headers()["content-type"], "text/plain");

    // 2. Pipeline metadata
    let req2 = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req| ls | to yaml }"#,
    )));
    let resp2 = handle(engine.clone(), None, default_config(), req2)
        .await
        .unwrap();
    assert_eq!(resp2.headers()["content-type"], "application/yaml");

    // 3. Record defaults to JSON
    let req3 = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req| {foo: "bar"} }"#,
    )));
    let resp3 = handle(engine.clone(), None, default_config(), req3)
        .await
        .unwrap();
    assert_eq!(resp3.headers()["content-type"], "application/json");

    // 4. Plain text defaults to text/html
    let req4 = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req| "Hello World"}"#,
    )));
    let resp4 = handle(engine.clone(), None, default_config(), req4)
        .await
        .unwrap();
    assert_eq!(resp4.headers()["content-type"], "text/html; charset=utf-8");

    // 5. Empty body has no Content-Type header
    let req5 = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(r#"{|req| null}"#)));
    let resp5 = handle(engine.clone(), None, default_config(), req5)
        .await
        .unwrap();
    assert!(
        resp5.headers().get("content-type").is_none(),
        "Empty body should not have Content-Type header"
    );

    // 6. Empty body defaults to 204 No Content
    let req6 = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(r#"{|req| null}"#)));
    let resp6 = handle(engine.clone(), None, default_config(), req6)
        .await
        .unwrap();
    assert_eq!(resp6.status(), 204, "Empty body should default to 204");
}

#[tokio::test]
async fn test_handle_bytestream() {
    // `to csv` returns a ByteStream with content-type text/csv
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req| ls | to csv }"#,
    )));

    let req = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();

    // Verify CSV content type
    assert_eq!(resp.headers()["content-type"], "text/csv");

    // Collect and verify body
    let body = resp.into_body().collect().await.unwrap().to_bytes();
    let content = String::from_utf8(body.to_vec()).unwrap();

    // Basic CSV format validation
    assert!(content.contains("name"));
    assert!(content.contains("type"));
    assert!(content.contains(","));
}

#[tokio::test]
async fn test_handle_preserve_preamble() {
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"
        def do-foo [more: string] {
          "foo" + $more
        }

        {|req|
          do-foo $req.path
        }
        "#,
    )));

    let req = Request::builder()
        .uri("/bar")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();

    // Collect and verify body
    let body = resp.into_body().collect().await.unwrap().to_bytes();
    let content = String::from_utf8(body.to_vec()).unwrap();
    assert_eq!(content, "foo/bar");
}

#[tokio::test]
async fn test_handle_static() {
    let tmp = tempfile::tempdir().unwrap();
    let static_dir = tmp.path().join("static");
    std::fs::create_dir(&static_dir).unwrap();

    let css = "body { background: blue; }";
    std::fs::write(static_dir.join("styles.css"), css).unwrap();

    let engine = Arc::new(ArcSwap::from_pointee(test_engine(&format!(
        r#"{{|req| .static '{}' $req.path }}"#,
        static_dir.to_str().unwrap()
    ))));

    let req = Request::builder()
        .uri("/styles.css")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();
    assert_eq!(resp.status(), 200);
    assert_eq!(resp.headers()["content-type"], "text/css");

    let body = resp.into_body().collect().await.unwrap().to_bytes();
    assert_eq!(String::from_utf8(body.to_vec()).unwrap(), css);
}

fn test_engine(script: &str) -> crate::Engine {
    test_engine_with_dev(script, false)
}

fn test_engine_with_dev(script: &str, dev: bool) -> crate::Engine {
    let mut engine = crate::Engine::new().unwrap();
    engine
        .add_commands(vec![
            Box::new(StaticCommand::new()),
            Box::new(ToSse {}),
            Box::new(MjCommand::new()),
            Box::new(PrintCommand::new()),
        ])
        .unwrap();
    engine
        .set_http_nu_const(&crate::engine::HttpNuOptions {
            dev,
            ..Default::default()
        })
        .unwrap();
    engine.parse_closure(script, None).unwrap();
    engine
}

#[tokio::test]
async fn test_handle_binary_value() {
    // Test data: simple binary content (PNG-like header and some bytes)
    let expected_binary = vec![
        0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, // PNG signature
        0xFF, 0xAA, 0xBB, 0xCC, 0xDD, // Additional bytes
    ];

    // Create engine that returns a binary value directly
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
        0x[89 50 4E 47 0D 0A 1A 0A FF AA BB CC DD] | metadata set { merge {'http.response': {
            headers: {"Content-Type": "application/octet-stream"}
        }}}
    }"#,
    )));

    let req = Request::builder()
        .uri("/binary-value")
        .body(Empty::<Bytes>::new())
        .unwrap();

    // Currently this will panic, but after fixing it should return a response
    let resp = handle(engine, None, default_config(), req).await.unwrap();

    // Assert proper content type
    assert_eq!(resp.status(), 200);
    assert_eq!(resp.headers()["content-type"], "application/octet-stream");

    // Assert binary content matches exactly
    let body = resp.into_body().collect().await.unwrap().to_bytes();
    assert_eq!(body.to_vec(), expected_binary);
}

#[tokio::test]
async fn test_handle_missing_header_error() {
    // Test script that tries to access missing header - reproduces the exact error from logs
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
            let host = $req.headers.host
            $"Host: ($host)"
        }"#,
    )));

    // Create request without host header
    let req = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();

    // This should fail currently - the Nu script tries to access missing column 'host'
    let resp = handle(engine, None, default_config(), req).await.unwrap();

    // After fixing, this should return 500 with error message instead of hanging
    assert_eq!(resp.status(), 500);
    let body = resp.into_body().collect().await.unwrap().to_bytes();
    let body_str = String::from_utf8(body.to_vec()).unwrap();
    assert!(body_str.contains("Script error"));
}

#[tokio::test]
async fn test_handle_script_panic() {
    // Test script that panics deliberately
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
            error make {msg: "Deliberate panic for testing"}
        }"#,
    )));

    let req = Request::builder()
        .uri("/panic")
        .body(Empty::<Bytes>::new())
        .unwrap();

    // This should return 500 instead of hanging/crashing the thread
    let resp = handle(engine, None, default_config(), req).await.unwrap();
    assert_eq!(resp.status(), 500);
    let body = resp.into_body().collect().await.unwrap().to_bytes();
    let body_str = String::from_utf8(body.to_vec()).unwrap();
    assert!(body_str.contains("Script error") || body_str.contains("Script panic"));
}

#[tokio::test]
async fn test_handle_nu_shell_column_error() {
    // Test script with different Nu shell column access errors
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
            let auth = $req.headers.authorization.bearer
            $"Auth: ($auth)"
        }"#,
    )));

    let req = Request::builder()
        .uri("/auth")
        .body(Empty::<Bytes>::new())
        .unwrap();

    // Should return 500 error instead of thread panic
    let resp = handle(engine, None, default_config(), req).await.unwrap();
    assert_eq!(resp.status(), 500);
}

#[tokio::test]
async fn test_handle_script_runtime_error() {
    // Test script with runtime errors (division by zero, etc)
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
            let result = (10 / 0)
            $"Result: ($result)"
        }"#,
    )));

    let req = Request::builder()
        .uri("/divide")
        .body(Empty::<Bytes>::new())
        .unwrap();

    // Should gracefully handle runtime errors
    let resp = handle(engine, None, default_config(), req).await.unwrap();
    assert_eq!(resp.status(), 500);
    let body = resp.into_body().collect().await.unwrap().to_bytes();
    let body_str = String::from_utf8(body.to_vec()).unwrap();
    assert!(body_str.contains("Script error"));
}

#[tokio::test]
async fn test_multi_value_set_cookie_headers() {
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
            "cookies set" | metadata set { merge {'http.response': {
                status: 200
                headers: {
                    "Set-Cookie": ["session=abc123; Path=/; HttpOnly", "token=xyz789; Path=/; Secure"]
                }
            }}}
        }"#,
    )));

    let req = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();
    assert_eq!(resp.status(), 200);

    // Verify we have two separate Set-Cookie headers
    let set_cookie_headers: Vec<_> = resp
        .headers()
        .get_all("set-cookie")
        .iter()
        .map(|v| v.to_str().unwrap())
        .collect();

    assert_eq!(set_cookie_headers.len(), 2);
    assert!(set_cookie_headers.contains(&"session=abc123; Path=/; HttpOnly"));
    assert!(set_cookie_headers.contains(&"token=xyz789; Path=/; Secure"));
}

#[tokio::test]
async fn test_handle_mj_template() {
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
        {items: [1, 2, 3], name: "test&foo"} | .mj --inline "
{%- for i in items -%}
  {%- if i == 2 %}{% continue %}{% endif -%}
  {{ i }}
{%- endfor %}
{{ name|urlencode }}
{{ items|tojson }}"
    }"#,
    )));

    let req = Request::builder()
        .method("GET")
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();
    assert_eq!(resp.status(), 200);

    let body = resp.into_body().collect().await.unwrap().to_bytes();
    let body = String::from_utf8(body.to_vec()).unwrap();
    // Tests: loop_controls (continue skips 2), urlencode, tojson
    assert!(body.contains("13")); // 1 and 3, skipped 2
    assert!(body.contains("test%26foo")); // urlencode
    assert!(body.contains("[1, 2, 3]") || body.contains("[1,2,3]")); // tojson
}

#[tokio::test]
async fn test_handle_html_record() {
    let engine = test_engine(r#"{|req| {__html: "<div>hello</div>"} }"#);

    let req = Request::builder()
        .method("GET")
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(
        Arc::new(ArcSwap::from_pointee(engine)),
        None,
        default_config(),
        req,
    )
    .await
    .unwrap();
    assert_eq!(resp.status(), 200);
    assert_eq!(
        resp.headers().get("content-type").unwrap(),
        "text/html; charset=utf-8"
    );

    let body = resp.into_body().collect().await.unwrap().to_bytes();
    let body = String::from_utf8(body.to_vec()).unwrap();
    assert_eq!(body, "<div>hello</div>");
}

#[tokio::test]
async fn test_cookie_set_secure_defaults() {
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
            use http-nu/http *
            "OK" | cookie set "session" "abc123"
        }"#,
    )));

    let req = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();
    assert_eq!(resp.status(), 200);

    let set_cookie: Vec<_> = resp
        .headers()
        .get_all("set-cookie")
        .iter()
        .map(|v| v.to_str().unwrap().to_string())
        .collect();

    assert_eq!(set_cookie.len(), 1);
    let cookie = &set_cookie[0];
    assert!(cookie.contains("session=abc123"));
    assert!(cookie.contains("Path=/"));
    assert!(cookie.contains("HttpOnly"));
    assert!(cookie.contains("Secure"));
    assert!(cookie.contains("SameSite=Lax"));
}

#[tokio::test]
async fn test_cookie_set_dev_mode_omits_secure() {
    let engine = Arc::new(ArcSwap::from_pointee(test_engine_with_dev(
        r#"{|req|
            use http-nu/http *
            "OK" | cookie set "session" "abc123"
        }"#,
        true,
    )));

    let req = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();
    let cookie = resp.headers().get("set-cookie").unwrap().to_str().unwrap();

    assert!(cookie.contains("session=abc123"));
    assert!(cookie.contains("HttpOnly"));
    assert!(!cookie.contains("Secure"));
}

#[tokio::test]
async fn test_cookie_set_accumulates() {
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
            use http-nu/http *
            "OK" | cookie set "session" "abc123" | cookie set "theme" "dark" --no-httponly
        }"#,
    )));

    let req = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();
    assert_eq!(resp.status(), 200);

    let set_cookie: Vec<_> = resp
        .headers()
        .get_all("set-cookie")
        .iter()
        .map(|v| v.to_str().unwrap().to_string())
        .collect();

    assert_eq!(set_cookie.len(), 2);
    assert!(set_cookie
        .iter()
        .any(|c| c.contains("session=abc123") && c.contains("HttpOnly")));
    assert!(set_cookie
        .iter()
        .any(|c| c.contains("theme=dark") && !c.contains("HttpOnly")));
}

#[tokio::test]
async fn test_cookie_delete() {
    let engine = Arc::new(ArcSwap::from_pointee(test_engine(
        r#"{|req|
            use http-nu/http *
            "OK" | cookie set "session" "abc123" | cookie delete "old_token"
        }"#,
    )));

    let req = Request::builder()
        .uri("/")
        .body(Empty::<Bytes>::new())
        .unwrap();

    let resp = handle(engine, None, default_config(), req).await.unwrap();

    let set_cookie: Vec<_> = resp
        .headers()
        .get_all("set-cookie")
        .iter()
        .map(|v| v.to_str().unwrap().to_string())
        .collect();

    assert_eq!(set_cookie.len(), 2);
    assert!(set_cookie.iter().any(|c| c.contains("session=abc123")));
    assert!(set_cookie
        .iter()
        .any(|c| c.contains("old_token=") && c.contains("Max-Age=0")));
}