INNER CODE UNIT · Python

body

micronaut-projects/micronaut-core · benchmarks/src/jmh/python/requestbodybenchmark/request_body.py:23

    def body(self, order: Annotated[BenchmarkOrder, Body]) -> str:
        return f"{order.customer}:{order.product}:{order.quantity}:{order.priority}:{order.note}"

    @Post("/control")
    def control(self) -> str:
        return "control"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…