class LogHandler

Defined in:

handlers/log_handler.cr

Constant Summary

Log = JosieHealth::Utils::Log
MAX_ANNOTATION_LENGTH = 500
MAX_DOSAGE_LENGTH = 50
MAX_FUTURE_MINUTES = 5
MAX_PAST_YEARS = 10
MAX_RAW_DOSE_LENGTH = 500
MAX_SUBSTANCE_LENGTH = 100

Max input lengths to prevent memory exhaustion

Constructors

Instance Method Summary

Constructor Detail

def self.new(redis_client : RedisClient) #

Instance Method Detail

def handle(request : HTTP::Request, response : HTTP::Server::Response, authenticated_user : String | Nil = nil) #

def handle_legacy(request : HTTP::Request, response : HTTP::Server::Response) #