HF RL Explorer

Build a lightweight HTTP caching helper using starlette . Implement a class ConditionalResponseBuilder that…

Build a lightweight HTTP caching helper using starlette . Implement a class ConditionalResponseBuilder that…: a task in repo2rlenv-code-instruct (Harbor dataset). Examples: python Cache hit → 304 builder = ConditionalResponseBuilder("hello", "text/plain", '"abc123"') resp =…

The task

Examples: ```python # Cache hit → 304 builder = ConditionalResponseBuilder("hello", "text/plain", '"abc123"') resp = builder.build(Headers({"if-none-match": '"abc123"'})) assert resp.status_code == 304

Part of FineEnvs/repo2rlenv-code-instruct.