Sha256: 14d223dacd00f8969941df8d0b982e80d76af7c3f6cb9619ba500aee38b3bc64

Contents?: true

Size: 232 Bytes

Versions: 2

Compression:

Stored size: 232 Bytes

Contents

module Murlsh

  # mixin for adding head() that calls get() and removed the body
  module HeadFromGet

    # call get() and remove the body
    def head(req)
      resp = get(req)
      resp.body = ''
      resp
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
murlsh-1.0.0 lib/murlsh/head_from_get.rb
murlsh-0.11.0 lib/murlsh/head_from_get.rb