(.using
 [library
  [lux "*"
   ["$" documentation {"+" documentation:}]
   ["@" target]
   [control
    ["<>" parser
     ["<[0]>" code]]]
   [data
    ["[0]" text {"+" \n}
     ["%" format {"+" format}]]]
   [macro
    ["[0]" template]]]]
 [\\library
  ["[0]" /]])

(documentation: (/.Client !)
  "A HTTP client capable of issuing requests to a HTTP server.")

(template [<name>]
  [(documentation: <name>
     (format "A " (text.upper_cased (template.text [<name>])) " request."))]

  [/.post]
  [/.get]
  [/.put]
  [/.patch]
  [/.delete]
  [/.head]
  [/.connect]
  [/.options]
  [/.trace]
  )

(.def: .public documentation
  (.List $.Module)
  (`` (`` ($.module /._
                    ""
                    [..Client
                     ..post
                     ..get
                     ..put
                     ..patch
                     ..delete
                     ..head
                     ..connect
                     ..options
                     ..trace
                     ($.default /.async)
                     ($.default /.headers)
                     (~~ (for [@.jvm (~~ (as_is ($.default /.default)))]
                              (~~ (as_is))))]
                    []))))
