GRAYBYTE WORDPRESS FILE MANAGER9892

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby19/lib64/ruby/1.9.1/webrick/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby19/lib64/ruby/1.9.1/webrick//httpversion.rb
#--
# HTTPVersion.rb -- presentation of HTTP version
#
# Author: IPR -- Internet Programming with Ruby -- writers
# Copyright (c) 2002 Internet Programming with Ruby writers. All rights
# reserved.
#
# $IPR: httpversion.rb,v 1.5 2002/09/21 12:23:37 gotoyuzo Exp $

module WEBrick
  class HTTPVersion
    include Comparable

    attr_accessor :major, :minor

    def self.convert(version)
      version.is_a?(self) ? version : new(version)
    end

    def initialize(version)
      case version
      when HTTPVersion
        @major, @minor = version.major, version.minor
      when String
        if /^(\d+)\.(\d+)$/ =~ version
          @major, @minor = $1.to_i, $2.to_i
        end
      end
      if @major.nil? || @minor.nil?
        raise ArgumentError,
          format("cannot convert %s into %s", version.class, self.class)
      end
    end

    def <=>(other)
      unless other.is_a?(self.class)
        other = self.class.new(other)
      end
      if (ret = @major <=> other.major) == 0
        return @minor <=> other.minor
      end
      return ret
    end

    def to_s
      format("%d.%d", @major, @minor)
    end
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:50:37
root / root
0755
httpauth
--
March 03 2024 22:48:05
root / linksafe
0755
httpservlet
--
March 03 2024 22:48:05
root / linksafe
0755
accesslog.rb
4.158 KB
June 23 2011 07:22:37
root / linksafe
0644
cgi.rb
6.902 KB
November 08 2010 20:59:01
root / linksafe
0644
compat.rb
0.891 KB
May 17 2011 20:29:58
root / linksafe
0644
config.rb
4.38 KB
September 11 2010 06:21:51
root / linksafe
0644
cookie.rb
3.032 KB
June 20 2011 06:48:40
root / linksafe
0644
htmlutils.rb
0.69 KB
February 14 2014 04:24:27
root / linksafe
0644
httpauth.rb
3.327 KB
May 10 2011 23:37:43
root / linksafe
0644
httpproxy.rb
8.854 KB
May 10 2011 00:13:58
root / linksafe
0644
httprequest.rb
12.675 KB
July 22 2011 12:49:34
root / linksafe
0644
httpresponse.rb
9.495 KB
June 21 2011 12:58:37
root / linksafe
0644
https.rb
1.61 KB
May 29 2011 14:14:38
root / linksafe
0644
httpserver.rb
7.212 KB
May 10 2011 00:13:58
root / linksafe
0644
httpservlet.rb
0.653 KB
October 02 2009 10:45:39
root / linksafe
0644
httpstatus.rb
4.946 KB
June 16 2011 21:12:00
root / linksafe
0644
httputils.rb
10.278 KB
February 14 2014 04:24:27
root / linksafe
0644
httpversion.rb
1.117 KB
May 09 2011 19:22:41
root / linksafe
0644
log.rb
3.599 KB
June 16 2011 21:12:00
root / linksafe
0644
server.rb
5.757 KB
May 10 2011 00:13:58
root / linksafe
0644
ssl.rb
4.23 KB
July 30 2010 23:26:53
root / linksafe
0644
utils.rb
6.232 KB
May 19 2012 05:40:29
root / linksafe
0644
version.rb
0.345 KB
May 09 2011 19:22:41
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF