method
Marshal
v1_9_3_125 -
Show latest stable
- Class:
Gem::Server
Marshal(req, res)public
No documentation available.
# File lib/rubygems/server.rb, line 460
def Marshal(req, res)
Gem::Specification.reset
add_date res
index = Gem::Deprecate.skip_during { Marshal.dump Gem.source_index }
if req.request_method == 'HEAD' then
res['content-length'] = index.length
return
end
if req.path =~ /Z$/ then
res['content-type'] = 'application/x-deflate'
index = Gem.deflate index
else
res['content-type'] = 'application/octet-stream'
end
res.body << index
end