Request Liquid Object Reference - 0.9.5

Object Name Request
Version 0.9.5

Description

The Request object contains information about the web request.

Attributes

Attribute Type Description
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 0.9.5

 

 
Back to Documentation