🔍

No recent searches

# class Net::HTTP::Lock

Class for representing WebDAV method LOCK:

    require 'net/http'
    uri = URI('http://example.com')
    hostname = uri.hostname # => "example.com"
    req = Net::HTTP::Lock.new(uri) # => #<Net::HTTP::Lock LOCK>
    res = Net::HTTP.start(hostname) do |http|
      http.request(req)
    end

See Request Headers.

Related:

- `Net::HTTP#lock`: sends `LOCK` request, returns response object.