AMXX-BG.INFO grip.inc Functions

grip functions

All callable symbols documented in this include, grouped by declaration type.

Natives

Name Signature
grip_body_from_json native GripBody:grip_body_from_json(GripJSONValue:value, bool:pretty = false, recursion_limit = 100)
grip_body_from_string native GripBody:grip_body_from_string(str[])
grip_cancel_request native grip_cancel_request(GripRequestCancellation:cancellation)
grip_create_default_options native GripRequestOptions:grip_create_default_options(Float:timeout = -1.0)
grip_destroy_body native grip_destroy_body(GripBody:body)
grip_destroy_json_value native grip_destroy_json_value(GripJSONValue:grip_json_value)
grip_destroy_options native grip_destroy_options(GripRequestOptions:options)
grip_get_error_description native grip_get_error_description(buffer[], buffer_size)
grip_get_response_body_string native grip_get_response_body_string(buffer[], buffer_size)
grip_get_response_state native GripResponseState:grip_get_response_state()
grip_get_response_status_code native any:grip_get_response_status_code()
grip_is_request_active native grip_is_request_active(GripRequestCancellation:request)
grip_json_array_append_bool native bool:grip_json_array_append_bool(GripJSONValue:array, bool:boolean)
grip_json_array_append_float native bool:grip_json_array_append_float(GripJSONValue:array, Float:number)
grip_json_array_append_null native bool:grip_json_array_append_null(GripJSONValue:array)
grip_json_array_append_number native bool:grip_json_array_append_number(GripJSONValue:array, number)
grip_json_array_append_string native bool:grip_json_array_append_string(GripJSONValue:array, const string[])
grip_json_array_append_value native bool:grip_json_array_append_value(GripJSONValue:array, const GripJSONValue:value)
grip_json_array_clear native bool:grip_json_array_clear(GripJSONValue:array)
grip_json_array_get_bool native bool:grip_json_array_get_bool(const GripJSONValue:array, index)
grip_json_array_get_count native grip_json_array_get_count(const GripJSONValue:array)
grip_json_array_get_float native Float:grip_json_array_get_float(const GripJSONValue:array, index)
grip_json_array_get_number native grip_json_array_get_number(const GripJSONValue:array, index)
grip_json_array_get_string native grip_json_array_get_string(const GripJSONValue:array, index, buffer[], buffer_size)
grip_json_array_get_value native GripJSONValue:grip_json_array_get_value(const GripJSONValue:array, index)
grip_json_array_remove native bool:grip_json_array_remove(GripJSONValue:array, index)
grip_json_array_replace_bool native bool:grip_json_array_replace_bool(GripJSONValue:array, index, bool:boolean)
grip_json_array_replace_float native bool:grip_json_array_replace_float(GripJSONValue:array, index, Float:number)
grip_json_array_replace_null native bool:grip_json_array_replace_null(GripJSONValue:array, index)
grip_json_array_replace_number native bool:grip_json_array_replace_number(GripJSONValue:array, index, number)
grip_json_array_replace_string native bool:grip_json_array_replace_string(GripJSONValue:array, index, const string[])
grip_json_array_replace_value native bool:grip_json_array_replace_value(GripJSONValue:array, index, const GripJSONValue:value)
grip_json_deep_copy native GripJSONValue:grip_json_deep_copy(const GripJSONValue:value)
grip_json_equals native bool:grip_json_equals(const GripJSONValue:value1, const GripJSONValue:value2)
grip_json_get_bool native bool:grip_json_get_bool(const GripJSONValue:value)
grip_json_get_float native Float:grip_json_get_float(const GripJSONValue:value)
grip_json_get_number native grip_json_get_number(const GripJSONValue:value)
grip_json_get_string native grip_json_get_string(const GripJSONValue:value, buffer[], maxlen)
grip_json_get_type native GripJSONType:grip_json_get_type(const GripJSONValue:value)
grip_json_init_array native GripJSONValue:grip_json_init_array()
grip_json_init_bool native GripJSONValue:grip_json_init_bool(bool:value)
grip_json_init_float native GripJSONValue:grip_json_init_float(Float:value)
grip_json_init_null native GripJSONValue:grip_json_init_null()
grip_json_init_number native GripJSONValue:grip_json_init_number(value)
grip_json_init_object native GripJSONValue:grip_json_init_object()
grip_json_init_string native GripJSONValue:grip_json_init_string(const value[])
grip_json_object_clear native bool:grip_json_object_clear(GripJSONValue:object)
grip_json_object_get_bool native bool:grip_json_object_get_bool(const GripJSONValue:object, const name[], bool:dot_not = false)
grip_json_object_get_count native grip_json_object_get_count(const GripJSONValue:object)
grip_json_object_get_float native Float:grip_json_object_get_float(const GripJSONValue:object, const name[], bool:dot_not = false)
grip_json_object_get_name native grip_json_object_get_name(const GripJSONValue:object, index, buffer[], maxlen)
grip_json_object_get_number native grip_json_object_get_number(const GripJSONValue:object, const name[], bool:dot_not = false)
grip_json_object_get_string native grip_json_object_get_string(const GripJSONValue:object, const name[], buffer[], maxlen, bool:dot_not = false)
grip_json_object_get_value native GripJSONValue:grip_json_object_get_value(const GripJSONValue:object, const name[], bool:dot_not = false)
grip_json_object_get_value_at native GripJSONValue:grip_json_object_get_value_at(const GripJSONValue:object, index)
grip_json_object_has_value native bool:grip_json_object_has_value(const GripJSONValue:object, const name[], GripJSONType:type = GripJSONError, bool:dot_not = false)
grip_json_object_remove native bool:grip_json_object_remove(GripJSONValue:object, const name[], bool:dot_not = false)
grip_json_object_set_bool native bool:grip_json_object_set_bool(GripJSONValue:object, const name[], bool:boolean, bool:dot_not = false)
grip_json_object_set_float native bool:grip_json_object_set_float(GripJSONValue:object, const name[], Float:number, bool:dot_not = false)
grip_json_object_set_null native bool:grip_json_object_set_null(GripJSONValue:object, const name[], bool:dot_not = false)
grip_json_object_set_number native bool:grip_json_object_set_number(GripJSONValue:object, const name[], number, bool:dot_not = false)
grip_json_object_set_string native bool:grip_json_object_set_string(GripJSONValue:object, const name[], const string[], bool:dot_not = false)
grip_json_object_set_value native bool:grip_json_object_set_value(GripJSONValue:object, const name[], const GripJSONValue:value, bool:dot_not = false)
grip_json_parse_file native GripJSONValue:grip_json_parse_file(const file[], error_buffer[], const error_buffer_size)
grip_json_parse_response_body native GripJSONValue:grip_json_parse_response_body(error_buffer[], const error_buffer_size)
grip_json_parse_string native GripJSONValue:grip_json_parse_string(const string[], error_buffer[], const error_buffer_size)
grip_json_serial_size native grip_json_serial_size(const GripJSONValue:value, bool:pretty = false, bool:null_byte = false, recursion_limit = 100)
grip_json_serial_to_file native bool:grip_json_serial_to_file(const GripJSONValue:value, const file[], bool:pretty = false, recursion_limit = 100)
grip_json_serial_to_string native grip_json_serial_to_string(const GripJSONValue:value, buffer[], maxlen, bool:pretty = false, recursion_limit = 100)
grip_json_validate native bool:grip_json_validate(const GripJSONValue:schema, const GripJSONValue:value)
grip_options_add_header native grip_options_add_header(GripRequestOptions:options, const headerName[], const headerValue[])
grip_request native GripRequestCancellation:grip_request(const uri[], GripBody:body, GripRequestType:type, const handler[], GripRequestOptions:options = Empty_GripRequestOptions, const any: userData = 0)

Stocks

Name Signature
grip_create_options stock grip_create_options(const headers[][2][], const headers_count, Float:timeout = -1.0) {