# puffin_http
[](https://embark.dev)
[](https://discord.gg/dAuKfZS)
[](https://crates.io/crates/puffin_http)
[](https://docs.rs/puffin_http)
A HTTP server/client for communicating [`puffin`](https://github.com/EmbarkStudios/puffin) profiling events.
You can view them using [`puffin_viewer`](https://github.com/EmbarkStudios/puffin/tree/main/puffin_viewer).
## How to use
Add a `puffin_http` `Server` to the profiled application
When the server is started, [`puffin_viewer`](https://crates.io/crates/puffin_viewer) application can connect to it and display profiling informations.
``` rust
fn main() {
let server_addr = format!("0.0.0.0:{}", puffin_http::DEFAULT_PORT);
puffin_http::Server::new(&server_addr).unwrap();
}
```
You can checkout the examples/server.rs for a more complete example.