agent: refactor: use handler for test http tls server
agent: refactor: use handler for test http tls server

vamage/consul,youhong316/consul,calgaryscientific/consul,kingland/consul,zeroae/consul,kingland/consul,42wim/consul,scalp42/consul,zeroae/consul,youhong316/consul,youhong316/consul,zeroae/consul,tugbabodrumlu/consul,scalp42/consul,vamage/consul,42wim/consul,hashicorp/consul,calgaryscientific/consul,i0rek/consul,tugbabodrumlu/consul,i0rek/consul,kingland/consul,tugbabodrumlu/consul,i0rek/consul,hashicorp/consul,vamage/consul,calgaryscientific/consul,42wim/consul,youhong316/consul,zeroae/consul,tugbabodrumlu/consul,scalp42/consul,youhong316/consul,i0rek/consul,hashicorp/consul,calgaryscientific/consul,i0rek/consul,hashicorp/consul,scalp42/consul,calgaryscientific/consul,42wim/consul,vamage/consul,zeroae/consul,kingland/consul,vamage/consul,42wim/consul,scalp42/consul,tugbabodrumlu/consul,kingland/consul