Module utils

Source
Expand description

Utility functions for node startup and shutdown, for example path parsing and retrieving single blocks from the network.

Functions§

get_or_create_jwt_secret_from_path
Attempts to retrieve or create a JWT secret from the specified path.
get_single_body
Get a body from the network based on header
get_single_header
Get a single header from the network
parse_path
Parses a user-specified path with support for environment variables and common shorthands (e.g. ~ for the user’s home directory).