module Medium::Connection
Direct including types
Defined in:
medium/connection.crConstant Summary
-
DEFAULT_PARAMS =
{"format" => "json"}
-
HOST =
"medium.com"
Instance Method Summary
- #download(endpoint : String)
- #get(endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil)
- #http(host : String | Nil = HOST) : HTTP::Client
- #request(method, endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil)
Instance Method Detail
def get(endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil)
#
def request(method, endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil)
#