Commit graph

15 commits

Author SHA1 Message Date
aumetra 463580d734
Restrict the body sizes of responses (#23)
* Add default response body size limit

* Limit all the methods, add reqwest shim that wraps around bytes_stream

* Change image to rust:1.65-bullseye

* Use `DeserializeOwned` instead of the HRTB over `Deserialize`

* Remove the configurability, limit to 100KB

* Add documentation to body size restricted functions

* rustfmt
2023-01-28 04:45:11 +01:00
Paul Delafosse 9332c81458
feat: add axum compat (#12)
* feat: add actix feature flag

* (WIP)feat: add axum feature

* WIP: axum veridy digest + example

Note: this does not compile yet

* WIP

* chore: clippy lints

* Use actix rt for axum example

* ci: run example in CI for both actix and axum

* feat: add json wrapper type for axum

* docs: update readme with actix and axum feature flags

* fix: fix ci

* chore: more clippy lints

* refactor: update according to PR comment and factorize 'verify_digest'
2022-11-28 21:19:56 +00:00
Felix Ableitner 0b603df139 Add some clippy lints 2022-11-24 13:27:38 +01:00
Nutomic 7bc1c4dbd9
Fix date header (#11) 2022-11-23 11:25:08 +00:00
Nutomic f9de5c1b10
Dont retry activity send in case of connection error or HTTP status 4xx (#8) 2022-11-21 14:38:49 +00:00
Nutomic 5d670513d6
Only retry activity sending at most 3 times (#7) 2022-11-21 14:38:39 +00:00
Felix Ableitner 34a41d327f Log warning in case number of workers reaches maximum 2022-11-10 22:28:47 +01:00
Nutomic 472d55a69e
Async verify (#4)
* Add date header when sending activity

* Version 0.2.2

* Make verify url function async
2022-10-28 10:37:51 +00:00
Felix Ableitner 4b08b671ec Upgrade dependencies 2022-09-29 23:36:50 +02:00
Felix Ableitner 4d888b2c8e Add config option to sign activities in compat mode 2022-09-29 23:27:59 +02:00
Felix Ableitner 1cdb2b098d Adjustments to make Lemmy compile 2022-06-06 16:36:44 +02:00
Felix Ableitner 68e4cce4ec Improve api for send_activity() 2022-06-03 14:00:16 +02:00
Felix Ableitner d7e401eeed Set worker count 0 in debug mode 2022-06-03 12:37:57 +02:00
Felix Ableitner 73d34d8011 Improved url verification, explicit debug mode 2022-06-02 14:40:54 +02:00
Felix Ableitner 5e4bd751aa Initial commit 2022-06-02 13:26:05 +02:00