vert-x / mod-lang-clojure

Vert.x 2.x is deprecated - use instead
http://vertx.io
Other
74 stars 15 forks source link

possible error in docs for vertx 2.x ? put-header/add-header ... #128

Closed cocodrino closed 9 years ago

cocodrino commented 9 years ago

Hi guys, in the doc http://vertx.io/core_manual_clojure.html#request-headers

appears

(-> (http/server)
    (http/on-request
      #(-> %
           (http/server-response)
           (http/put-header "Content-Type" "text/plain")
           (http/end (pr-str (http/headers %)))))
    (http/listen 8080)

I can't find the put-header method, I think than would be add-header instead...it's not a big deal, but yep, it's a bit annoying :D ....

tobias commented 9 years ago

Thanks! PR sent to vertx.io: https://github.com/vert-x/vert-x.github.io/pull/57