mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
deps: update ada to 4.0.0
This commit is contained in:
1 parent
6a3d80fb49
commit
bc97592b4e
3 files changed
+8210
-10567
No files matched your search
Vendored
+7186
-9893
File diff suppressed because it is too large.
Load diff
Vendored
+1011
-673
File diff suppressed because it is too large.
Load diff
Vendored
+13
-1
@@ -13,7 +13,12 @@
|
||||
// It represents "uint32_t(-1)"
|
||||
#define ada_url_omitted 0xffffffff
|
||||
|
||||
// string that is owned by the ada_url instance
|
||||
// string that points to data stored in the ada_url instance
|
||||
//
|
||||
// Lifetime rules:
|
||||
// - This pointer remains valid only while the underlying ada_url is unchanged.
|
||||
// - Any mutation (e.g., ada_set_* and ada_clear_*) may invalidate previously
|
||||
// returned ada_string pointers.
|
||||
typedef struct {
|
||||
const char* data;
|
||||
size_t length;
|
||||
@@ -57,6 +62,9 @@ bool ada_is_valid(ada_url result);
|
||||
|
||||
// url_aggregator getters
|
||||
// if ada_is_valid(result)) is false, an empty string is returned
|
||||
//
|
||||
// Important: this invalidation rule applies only to getters that return
|
||||
// ada_string. The ada_get_origin getter returns ada_owned_string.
|
||||
ada_owned_string ada_get_origin(ada_url result);
|
||||
ada_string ada_get_href(ada_url result);
|
||||
ada_string ada_get_username(ada_url result);
|
||||
@@ -184,6 +192,10 @@ ada_string_pair ada_search_params_entries_iter_next(
|
||||
bool ada_search_params_entries_iter_has_next(
|
||||
ada_url_search_params_entries_iter result);
|
||||
|
||||
// max URL length configuration
|
||||
void ada_set_max_input_length(uint32_t length);
|
||||
uint32_t ada_get_max_input_length(void);
|
||||
|
||||
// Definitions for Ada's version number.
|
||||
typedef struct {
|
||||
int major;
|
||||
|
||||
Reference in new issue
Block a user