ClientHttpRequest::initRequest(HttpRequest *aRequest)
{
    assignRequest(aRequest);
    if (const auto csd = getConn()) {
        if (!csd->connectionTag().isEmpty()) {
            if (!request->notes)
                request->notes = new NotePairs;
            // TODO: assert if "clt_conn_tag" already added?
            request->notes->add("clt_conn_tag", SBuf(csd->connectionTag()).c_str());
        }
    }
    // al is created in the constructor
    assert(al);
    if (!al->request) {
        al->request = request;
        HTTPMSGLOCK(al->request);
        (void)SyncNotes(*al, *request);
    }
}
ClientHttpRequest::initRequest(HttpRequest *aRequest)
{
    assignRequest(aRequest);
    if (const auto csd = getConn()) {
        if (!csd->connectionTag().isEmpty()) {
            if (!request->notes)
                request->notes = new NotePairs;
             
            request->notes->add("clt_conn_tag", SBuf(csd->connectionTag()).c_str());
        }
    }
     
    assert(al);
    if (!al->request) {
        al->request = request;
        HTTPMSGLOCK(al->request);
        (void)SyncNotes(*al, *request);
    }
}