Module: N::HttpUtils

Defined in:
lib/n/utils/http.rb

Overview

HttpUtils

Class Method Summary collapse

Class Method Details

.string_to_time(string) ⇒ Object

NOT IMPLEMENTED

Converts an http time string to a time object. Example: Sat, 01 Jan 2000 00:00:00 GMT



92
93
94
# File 'lib/n/utils/http.rb', line 92

def self.string_to_time(string)
	raise "Not implemented"
end

.time_to_string(time) ⇒ Object

Converts the given time object to an http time string. Example: Sat, 01 Jan 2000 00:00:00 GMT



82
83
84
# File 'lib/n/utils/http.rb', line 82

def self.time_to_string(time)
	return CGI::rfc1123_date(time)
end