#http-service #traits #future #mocking #create #test

http-service-mock

Creates a HttpService server mock to test requests/responses against your app

7 releases (4 breaking)

0.5.0 Apr 11, 2020
0.4.0 Nov 27, 2019
0.3.1 Aug 21, 2019
0.3.0 Jul 25, 2019
0.1.0 Feb 28, 2019

#52 in #http-service

Download history 3/week @ 2024-11-13 7/week @ 2024-11-20 6/week @ 2024-11-27 11/week @ 2024-12-04 35/week @ 2024-12-11 6/week @ 2024-12-18 1/week @ 2025-01-15 5/week @ 2025-01-29 226/week @ 2025-02-05 16/week @ 2025-02-12 18/week @ 2025-02-19 20/week @ 2025-02-26

282 downloads per month
Used in tide-validator

MIT/Apache

12KB
85 lines

http-service

Types and traits to help you implement your own HTTP server

About

This crate has been deprecated. We recommend implementing inherent methods such as Tide's Server::respond method instead.

The crate http-service provides the necessary types and traits to implement your own HTTP Server.

For example you can use the workspace member http-service-hyper to run an HTTP Server.

  1. Runs via http_service_hyper::run(HTTP_SERVICE, ADDRESS);
  2. Returns a future which can be awaited via http_service_hyper::serve(HTTP_SERVICE, ADDRESS);

Contributing

Want to join us? Check out our The "Contributing" section of the guide and take a look at some of these issues:

Conduct

The http-service project adheres to the Contributor Covenant Code of Conduct. This describes the minimum behavior expected from all contributors.

License

MIT OR Apache-2.0


lib.rs:

A crate for simulating an http server

Dependencies

~10–22MB
~322K SLoC