Split from_data() up in smaller pieces

To still be able to handle errors correctly, also regarding the http
status code, `thiserror::Error` is used.
This commit is contained in:
finga 2021-04-03 01:10:50 +02:00
parent 8314214e06
commit 7f143e0b08
4 changed files with 113 additions and 83 deletions

View file

@ -25,3 +25,4 @@ hmac = "0.10"
sha2 = "0.9"
hex = "0.4"
ipnet = { version = "2.3", features = ["serde"] }
thiserror = "1.0"