The invention provides a housing
assembly and a connector. The connector comprises a locking cap and a connector housing, wherein the front end of the locking cap is provided with a canted
coil spring. The locking cap is rotatingly disposed on the connector housing in a sleeve manner, and the rear end of the locking cap is provided with a
peripheral chute and an axial chute, wherein the axial chute is communicated with the
peripheral chute and extends backwards from the
peripheral chute. The connector housing is provided with a sliding block which can rotate in the peripheral chute relative to the locking cap, and also can move axially in the axial chute relative to the locking cap. The housing
assembly also comprises an elastic part which provides a
clockwise torque for the locking cap. The housing
assembly also comprises a peripheral limiting structure which is used for limiting the
clockwise rotating limit of the locking cap when the sliding block is located in the peripheral chute. When the locking cap is located at a limit position of
clockwise rotation, the sliding block is staggered with the axial chute in a peripheral direction. The connector is reliable in locking, and is convenient to use.