class Silver::Context

Overview

The context for some request. Along with the path and parameters.

Defined in:

silver.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(request : HttpRequest, params : Hash(String, String) = Hash(String, String).new) #

[View source]

Instance Method Detail

def param(name : String) : String | Nil #

[View source]
def params : Hash(String, String) #

[View source]
def path : String #

[View source]
def query(name : String) : String | Nil #

[View source]
def query_params : Hash(String, String) #

[View source]
def request : HttpRequest #

[View source]