patch_add_HTTP_track.diff

sardaukar (Bruno Antunes), 04/06/2009 08:50 pm

Download (731 Bytes)

http.rb.patched 2009-04-03 11:53:33.000000000 +0100
919 919
      request(Trace.new(path, initheader))
920 920
    end
921 921

  
922
    # Sends a TRACK request to the +path+ and gets a response,
923
    # as an HTTPResponse object.
924
    def track(path, body= nil, initheader = nil)
925
      request(Track.new(path, initheader), body)
926
    end
927

  
922 928
    # Sends a GET request to the +path+ and gets a response,
923 929
    # as an HTTPResponse object.
924 930
    # 
......
1640 1646
      RESPONSE_HAS_BODY = true
1641 1647
    end
1642 1648

  
1649
   class Track < HTTPRequest
1650
     METHOD = 'TRACK'
1651
     REQUEST_HAS_BODY = true
1652
     RESPONSE_HAS_BODY = true
1653
   end
1654

  
1643 1655
    #
1644 1656
    # WebDAV methods --- RFC2518
1645 1657
    #