Skip to main content

conventionByRequestHost

Returns the convention associated with the domain name of this HTTP request. If one is not present, the request will error out. (For a version that will return null instead of erroring out, use conventionByRequestHostIfPresent.)

conventionByRequestHost: Convention!

Type

Convention object

A Convention in Intercode is essentially a web site hosted by Intercode. A Convention can represent an actual, real-world convention (and this is probably the most common use case), but it can also represent a single event (if the site_mode is set to single_event) or a series of events over time (if the site_mode is set to event_series).

They're called Convention for historical reasons, because naming is hard. Sorry. It's probably best to think of them as "web site."