All child beads closed and acceptance criteria verified:
- POST /extract, /extract/text, /extract/stream endpoints implemented
- GET /health handler returning {status:ok, version:x.y.z}
- HTTP 413 with custom JSON error body
- 8 concurrent requests test (test_concurrent_requests_parallel)
- Feature flag #[cfg(feature = serve)] properly implemented
Phase 6.4 HTTP Serve Mode is complete.
18 lines
471 B
Rust
18 lines
471 B
Rust
use std::fs::File;
|
|
use std::io::Write;
|
|
|
|
fn main() {
|
|
let mut output = File::create("tests/object_parser/fixtures/deep_nesting.pdf.in").unwrap();
|
|
|
|
// Create 300 levels of nested dicts
|
|
for _ in 0..300 {
|
|
write!(output, "<< /A ").unwrap();
|
|
}
|
|
write!(output, "1").unwrap();
|
|
for _ in 0..300 {
|
|
write!(output, " >>").unwrap();
|
|
}
|
|
writeln!(output).unwrap();
|
|
|
|
println!("Generated deep_nesting.pdf.in with 300 levels of nesting");
|
|
}
|