Scheme 2:
The reaction of phenols with acyl halides and acid anhydrides forming thioesters.