Built-in Functions Reference
Complete reference for all 170+ built-in functions in Soli. From I/O and string manipulation to HTTP requests, cryptography, testing utilities, caching, rate limiting, and security headers.
Category Overview
Core Functions
I/O operations, type conversion, array/hash manipulation, string functions, math utilities, and file operations.
System Functions
Execute shell commands with System.run() and backtick syntax. Returns async results with stdout, stderr, and exit_code.
HTTP Functions
HTTP client for GET, POST, PUT, PATCH, DELETE requests with JSON support and parallel requests.
SOAP Class
SOAP web service calls, XML envelope wrapping, parsing, and XML escaping.
JSON Functions
Parse and stringify JSON data.
Cryptography Functions
Password hashing with Argon2, X25519 key exchange, Ed25519 signatures.
JWT Functions
Create, verify, and decode JSON Web Tokens for authentication.
Regex Functions
Regular expression matching, finding, replacing, splitting, and capturing.
Environment Functions
Read, set, and manage environment variables with .env file support.
DateTime Functions
Date/time parsing, formatting, arithmetic, and comparison using Unix timestamps.
Validation Functions
Schema-based validation with the V class and chainable validators.
Session Functions
Server-side session management for user state.
Testing Functions
Test DSL with describe/it blocks, assertions, and factory functions.
I18n Functions
Internationalization with translations, pluralization, and locale-aware formatting.
Cache Functions
In-memory caching with TTL support for storing and retrieving data efficiently.
Rate Limiting Functions
Sliding window rate limiter for API protection and abuse prevention.
Security Headers Functions
Automatic security header injection including CSP, HSTS, X-Frame-Options, and more.
File Upload Functions
Multipart form parsing and file uploads to SolidB blob storage.
WebSocket Functions
WebSocket messaging, presence tracking, and room management for real-time applications.
Start Exploring
Begin with Core Functions for the most commonly used utilities.