class
TandaCLI::API::Request
- TandaCLI::API::Request
- Reference
- Object
Defined in:
tanda_cli/api/request.crConstant Summary
-
CONNECT_TIMEOUT =
10.seconds -
FETCHING_MESSAGE =
"Fetching…" -
GET =
"GET" -
INTERNAL_SERVER_ERROR_STRING =
"Internal Server Error" -
POST =
"POST" -
PUT =
"PUT" -
READ_TIMEOUT =
30.seconds -
SENDING_MESSAGE =
"Sending…" -
WRITE_TIMEOUT =
10.seconds
Constructors
Instance Method Summary
- #get(type : T.class, endpoint : String, query : Query | Nil = nil) : Result(T) forall T
- #post(type : T.class, endpoint : String, body : Body | JSON::Serializable) : Result(T) forall T
- #put(type : T.class, endpoint : String, body : JSON::Serializable) : Result(T) forall T
Constructor Detail
Instance Method Detail
def post(type : T.class, endpoint : String, body : Body | JSON::Serializable) : Result(T) forall T
#