ada_set_protocol

Sets the protocol component of a parsed URL. Has no effect if the URL is invalid.

extern (C) @nogc nothrow @safe @trusted
bool
ada_set_protocol
(,
scope const(char)* input
,
size_t length
)

Parameters

result ada_url

The ada_url handle.

input const(char)*

The new protocol string (null-terminated C string, e.g., "http:").

length size_t

The length of the input string.

Return Value

Type: bool

true if successful, false otherwise.

Meta