Capy-Bearer Documentation
API Reference
Bearer APIs available to Capy units.
Search
API Functions
abs
()
array_merge
()
atan2
()
backtrace_capture
()
backtrace_get_frames
()
base64_decode
()
base64_encode
()
basename
()
bit_and
()
bit_count_1
()
bit_count_lz
()
bit_count_tz
()
bit_not
()
bit_or
()
bit_rotate_left
()
bit_rotate_right
()
bit_shl
()
bit_shr
()
bit_xor
()
bits_of
()
brb_decode
()
brb_encode
()
bytes_of
()
call
()
ceil
()
clamp
()
clear
()
clone
()
component
()
component_render
()
component_resolve
()
contains
()
copysign
()
cos
()
crypto_equal
()
crypto_operation
()
csrf_field
()
csrf_rotate
()
csrf_token
()
csrf_valid
()
cwd_get
()
cwd_set
()
delete
()
dir_list
()
dir_remove
()
dirname
()
draw_float
()
draw_int
()
dval
()
each
()
encode_query
()
every
()
exp
()
f32_from_bits
()
f64_from_bits
()
file_append
()
file_chmod
()
file_close
()
file_copy
()
file_exists
()
file_fsync
()
file_get_contents
()
file_mtime
()
file_open
()
file_pread
()
file_put_contents
()
file_pwrite
()
file_read
()
file_rename
()
file_seek
()
file_stat
()
file_symlink
()
file_tell
()
file_temp
()
file_truncate
()
file_unlink
()
file_write
()
filter
()
find
()
first
()
floor
()
flush_output
()
gen_noise
()
gen_noise64
()
gen_sha1
()
get
()
get_by_path
()
get_or_create
()
get_type_name
()
gz_compress
()
gz_uncompress
()
has
()
hex
()
hmac_sha256
()
html_escape
()
http_request
()
http_request_async
()
is_array
()
is_finite
()
is_infinite
()
is_list
()
is_nan
()
job_await
()
job_cancel
()
job_result
()
job_status
()
join
()
join_kv
()
json_consume_space
()
json_decode
()
json_encode
()
keys
()
length
()
log
()
lower
()
ls
()
map
()
markdown_to_ast
()
markdown_to_html
()
max
()
memcache_command
()
memcache_connect
()
memcache_delete
()
memcache_get
()
memcache_get_multiple
()
memcache_set
()
min
()
mkdir
()
mysql_connect
()
mysql_disconnect
()
mysql_escape
()
mysql_info
()
mysql_query
()
nearest
()
neg
()
nibble
()
ob_close
()
ob_get
()
ob_get_close
()
ob_start
()
parse_query
()
parse_uri
()
password_hash
()
password_verify
()
path_join
()
path_normalize
()
pop
()
posix_info
()
pow
()
print
()
push
()
random_bytes
()
redirect
()
regex_match
()
regex_replace
()
regex_search
()
regex_search_all
()
regex_split
()
replace
()
runtime_perf
()
runtime_safe_key
()
safe_name
()
server_start_http
()
server_stop
()
session_destroy
()
session_id_create
()
session_remove
()
session_set
()
session_start
()
set
()
sha256
()
shell_escape
()
shell_exec
()
sin
()
socket_close
()
socket_connect
()
socket_read
()
socket_write
()
some
()
sort
()
split
()
split_http_headers
()
split_kv
()
split_space
()
split_utf8
()
sqlite_connect
()
sqlite_disconnect
()
sqlite_info
()
sqlite_query
()
sqrt
()
str_ends_with
()
str_starts_with
()
string
()
string_from_bytes
()
strpos
()
substr
()
task
()
task_await
()
task_cancel
()
task_status
()
time
()
time_format_local
()
time_format_relative
()
time_format_utc
()
time_parse
()
time_precise
()
trap
()
trim
()
trunc
()
unique
()
unit_call
()
unit_compile
()
unit_info
()
unit_load
()
unit_render
()
units_list
()
upper
()
uri_decode
()
uri_encode
()
usleep
()
values
()
var_dump
()
ws_close
()
ws_send
()
ws_send_to
()
xml_decode
()
xml_encode
()
yaml_decode
()
yaml_encode
()
zip_create
()
zip_extract
()
zip_list
()
zip_read
()
Types
array
bool
Dynamic values
f32
f64
function value
module
Request
s16
s32
s64
s8
String
struct
u16
u32
u64
u8
Handlers
CLI
COMPONENT
INIT
ONCE
RENDER
WS
How-to
read-request-context
Learn Capy
1. Getting started
2. Basic syntax
3. Types
4. Expressions and control flow
5. Functions
6. Strings and HTML
7. Arrays and structs
8. Dynamic values
9. Handling a web request
10. Units and components
11. Tasks and jobs
12. Errors and testing
13. Coming from React