4.3 KiB
4.3 KiB
module vweb
Contents
- Constants
- controller
- controller_host
- database_pool
- not_found
- run
- run_at
- DatabasePool
- Middleware
- RawHtml
- Context
- init_server
- before_accept_loop
- before_request
- send_response_to_client
- html
- text
- json
- json_pretty
- file
- ok
- server_error
- redirect
- not_found
- set_cookie
- set_content_type
- set_cookie_with_expire_date
- get_cookie
- set_status
- add_header
- get_header
- set_value
- get_value
- handle_static
- host_handle_static
- mount_static_folder_at
- host_mount_static_folder_at
- serve_static
- host_serve_static
- user_agent
- ip
- error
- Controller
- ControllerPath
- PoolParams
- RedirectParams
- Result
- RunParams
Constants
controller
controller_host
database_pool
not_found
run
run_at
Example
vweb.run_at(new_app(), vweb.RunParams{ host: 'localhost' port: 8099 family: .ip }) or { panic(err) }