HIV can be diagnosed through blood or saliva testing. Available tests include: Antigen/antibody tests. These tests usually involve drawing blood from a vein. Antigens are substances on the HIV virus itself and are usually detectable — a positive test — in the blood within a few weeks after exposure to HIV.
https://www.mayoclinic.org/diseases-conditions/hiv-aids/diagnosis-treatment/drc-20373531