INNER CODE UNIT · Python
PythonRequestBodyBenchmarkController
micronaut-projects/micronaut-core · benchmarks/src/jmh/python/requestbodybenchmark/request_body.py:21
class PythonRequestBodyBenchmarkController:
@Post("/body")
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"