Slide 88
Slide 88 text
Proprietary and Confidential
• Tuples with a pre-defined structure
• Can be used as a form of validation
• Ensures integrity
Shapes
newtype HTTPRequest = shape(
'status' => HTTPStatusCode,
'headers' => Map,
'data' => shape (
'GET' => ?Map,
'POST' => ?Map,
'COOKIE' => ?Map,
'SERVER' => Map
),
'body' => ?string
);