Request - Liquid Object Reference - 1.0.0

Object Name Request
Version 1.0.0

Description

The Request object contains information about the web request.

Attributes

Attribute Type Description
data Object Returns a custom data object for this object
fullpath String Returns the full path for the current request including the query string e.g. ‘/my-path?page=1’
host String Returns the hostname used for this request e.g. ‘store.example.com’
params Object Returns an Object of query string parameters for the current request
path String Returns the path for the current request, i.e., everything after the host name e.g. ‘/my-path’
query_string String Returns the query string part of the URL, i.e., everything after ‘?’ e.g. ‘page=1’
url String Returns the entire URL used for the request, e.g. https://store.example.com/my-path?page=1

Objects that return Requests

Back to Object List

Back to Liquid Reference for 1.0.0

 

 
Back to Documentation