added getHeaders method for server widget