class LinkShort::Requester

Defined in:

requester.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(uri : URI = URI.parse("https://ls.johannespour.de")) #

[View source]

Instance Method Detail

def delete(path : String, data : Hash(String, String)) : Hash(String, JSON::Any) #

Make a #delete request to the specified url + path


[View source]
def get(path : String) : Hash(String, JSON::Any) #

Make a #get request to the specified url + path


[View source]
def post(path : String, data : Hash(String, String)) : Hash(String, JSON::Any) #

Make a #post request to the specified url + path


[View source]
def put(path : String, data : Hash(String, String)) : Hash(String, JSON::Any) #

Make a #put request to the specified url + path


[View source]