Skip to content

v0.1.4

Latest

Choose a tag to compare

@ym-project ym-project released this 29 Aug 20:51
· 6 commits to v4 since this release

What's Changed

  • docs(#40): 📝 add error_handler config option to README by @ym-project in #42
  • feat(#2): ✨ add content_type config option by @ym-project in #43
    use 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