Pharmacology

A teenager has seen her local physician complaining of persistent and severe headaches. Her physician diagnosed migraine and prescribes sumatriptan, which acts by which of the following mechanisms?