Repository navigation
What's Changed
- docs(#40): 📝 add
error_handlerconfig option to README by @ym-project in #42 - feat(#2): ✨ add
content_typeconfig option by @ym-project in #43use actix_msgpack::MsgPackConfig; use actix_web::{HttpResponse, HttpServer, App, web::Data}; #[actix_web::main] async fn main() { HttpServer::new(|| { let mut config = MsgPackConfig::default(); config.content_type(|mime_type| mime_type == mime::APPLICATION_JSON); App::new().app_data(Data::new(config)).service(...) } }
Full Changelog: v0.1.3...v0.1.4