toppage_h.erl 1.1 KB

1234567891011121314151617181920212223
  1. %% Feel free to use, reuse and abuse the code in this file.
  2. %% @doc Compress response handler.
  3. -module(toppage_h).
  4. -export([init/2]).
  5. init(Req0, Opts) ->
  6. BigBody =
  7. <<"A cowboy is an animal herder who tends cattle on ranches in North America,
  8. traditionally on horseback, and often performs a multitude of other ranch-
  9. related tasks. The historic American cowboy of the late 19th century arose
  10. from the vaquero traditions of northern Mexico and became a figure of special
  11. significance and legend. A subtype, called a wrangler, specifically tends the
  12. horses used to work cattle. In addition to ranch work, some cowboys work for
  13. or participate in rodeos. Cowgirls, first defined as such in the late 19th
  14. century, had a less-well documented historical role, but in the modern world
  15. have established the ability to work at virtually identical tasks and obtained
  16. considerable respect for their achievements. There are also cattle handlers
  17. in many other parts of the world, particularly South America and Australia,
  18. who perform work similar to the cowboy in their respective nations.\n">>,
  19. Req = cowboy_req:reply(200, #{}, BigBody, Req0),
  20. {ok, Req, Opts}.