class Crul::Options
- Crul::Options
- Reference
- Object
Defined in:
options.crConstant Summary
-
USAGE =
" Usage: crul [method] URL [options]\n\n HTTP methods (default: GET):\n get, GET Use GET\n post, POST Use POST\n put, PUT Use PUT\n delete, DELETE Use DELETE\n\n HTTP options:\n -d DATA, --data DATA Request body\n -d @file, --data @file Request body (read from file)\n -H HEADER, --header HEADER Set header\n -a USER:PASS, --auth USER:PASS Basic auth\n -c FILE, --cookies FILE Use FILE as cookie store (reads and writes)\n\n Response formats (default: autodetect):\n -j, --json Format response as JSON\n -x, --xml Format response as XML\n -p, --plain Format response as plain text\n\n Other options:\n -h, --help Show this help\n -V, --version Display version"
Class Method Summary
Instance Method Summary
- #basic_auth : Tuple(String, String) | Nil
- #basic_auth=(basic_auth : Tuple(String, String) | Nil)
- #body : String | Nil
- #body=(body : String | Nil)
- #cookie_store : Crul::CookieStore
- #cookie_store=(cookie_store : Crul::CookieStore)
- #errors : Array(Exception)
- #errors=(errors : Array(Exception))
- #format : Crul::Formats
- #format=(format : Crul::Formats)
- #headers : HTTP::Headers
- #headers=(headers : HTTP::Headers)
- #help=(help : Bool)
- #help? : Bool
- #method : Crul::Methods
- #method=(method : Crul::Methods)
- #parser : OptionParser | Nil
- #parser=(parser : OptionParser | Nil)
- #parser? : OptionParser | Nil | Nil
- #url : URI
- #url=(url : URI)
- #url? : URI | Nil
- #version=(version : Bool)
- #version? : Bool