class Dontfile::Client

Included Modules

Defined in:

dontfile/client.cr
dontfile/client/pages.cr

Constant Summary

BASE_URI = URI.parse("http://dontfile.com")
DEFAULT_HEADERS = HTTP::Headers {"content-type" => "application/json"}

Constructors

Instance Method Summary

Instance methods inherited from module Dontfile::Client::Pages

append_page_content(page_path : String, content : String) append_page_content, delete_page_file(page_path : String) : Dontfile::Page delete_page_file, page(path : String, options = nil) : Dontfile::Page page, prepend_page_content(page_path : String, content : String) prepend_page_content, replace_page_content(page_path : String, content : String = "") : Dontfile::Page replace_page_content

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def delete(url : String, params : Hash(String, String)) #

[View source]
def get(url : String, params = nil) #

[View source]
def patch(url : String, body : String) #

[View source]