Example #1
0
function after_return_data($headers, $result)
{
    $uri = $_SERVER['REQUEST_URI'];
    $title = '┏recv ' . $uri . ' ┅ ' . keyval_str($result);
    jsondb_logger('nofity', $title, ['url' => $uri, 'headers' => $headers, 'result' => $result]);
    return $result;
}
Example #2
0
function after_upstream_callback($info, &$headers, &$body)
{
    $url = $info['url'];
    $path = parse_url($url, PHP_URL_PATH);
    $mta_content = mta_decode($headers, $body);
    $title = 'recv ' . $path . ' ' . keyval_str($mta_content);
    jsondb_logger('nofity', $title, ['url' => $url, 'info' => $info, 'headers' => $headers, 'body' => $body, 'bin2hex' => hex_view($body), 'decode' => $mta_content]);
}