-
Or maybe i can somehow can mock ureq responses? |
Beta Was this translation helpful? Give feedback.
Answered by
algesten
Nov 9, 2024
Replies: 1 comment
-
For ureq 2.x, it's a bit limited, but you got this constructor: https://docs.rs/ureq/2.10.1/ureq/struct.Response.html#method.new For ureq 3.x the API is the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
asv7c2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For ureq 2.x, it's a bit limited, but you got this constructor: https://docs.rs/ureq/2.10.1/ureq/struct.Response.html#method.new
For ureq 3.x the API is the
http crate
, and the body can be created any way you want: https://docs.rs/ureq/3.0.0-rc2/ureq/struct.Body.html#method.builder