Type and host must not be empty.