# Function `kurogane::resource_handler_from_bytes`

```rust
pub fn resource_handler_from_bytes(
    data: Vec<u8>,
    mime: &str,
    status: i32,
) -> ResourceHandler
```

Builds a [`ResourceHandler`] serving `data` once with the given MIME type
and status code.

For custom scheme handlers that answer with static bytes. The bytes exist
before [`SchemeHandler::create`] returns on the IO thread. Producing them
must be cheap.

[`ResourceHandler`]: https://docs.rs/tanso/latest/tanso/bindings/x86_64_pc_windows_msvc/struct.ResourceHandler.html
[`SchemeHandler::create`]: https://kurogane-rs.org/docs/api/app/schemehandler.md#tymethod.create

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/scheme.rs#L530
