mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Parse JsonWebKey
from string
Add the ability to parse a `JsonWebKey` structure from a raw string.
This commit is contained in:
parent
06733bea48
commit
c1a65f3d53
Notes:
github-actions[bot]
2024-12-16 10:36:00 +00:00
Author: https://github.com/devgianlu
Commit: c1a65f3d53
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2915
2 changed files with 76 additions and 0 deletions
|
@ -44,6 +44,8 @@ struct JsonWebKey {
|
|||
Optional<String> k;
|
||||
|
||||
JS::ThrowCompletionOr<GC::Ref<JS::Object>> to_object(JS::Realm&);
|
||||
|
||||
static JS::ThrowCompletionOr<JsonWebKey> parse(JS::Realm& realm, ReadonlyBytes data);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue