Skip to content

Commit 277730d

Browse files
committed
clnrest: add more valid request and response types
Changelog-Added: clnrest can now return successful responses as xml, yaml, html or form-encoded in addition to json defined in the 'Accept' header. The same goes for request types except for html defined in the 'Content-type' header.
1 parent bd743d7 commit 277730d

File tree

4 files changed

+444
-39
lines changed

4 files changed

+444
-39
lines changed

Cargo.lock

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/rest-plugin/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ bytes = "1"
1313
log = { version = "0.4", features = ['std'] }
1414
serde = { version = "1", features = ["derive"] }
1515
serde_json = "1"
16+
serde_yml = "0.0.12"
17+
quick-xml = { version = "0.37", features = ["serialize"] }
18+
roxmltree_to_serde = "0.6"
19+
serde_qs = "0.15"
1620
tokio-util = { version = "0.7", features = ["codec"] }
1721
tokio = { version="1", features = ['io-std', 'rt-multi-thread', 'sync', 'macros', 'io-util'] }
1822
axum = "0.8"

0 commit comments

Comments
 (0)