Sha256: 7c677fc28159706ad8a84ba4c0e64beed16787425ba672089ec505c80f670770
Contents?: true
Size: 305 Bytes
Versions: 1
Compression:
Stored size: 305 Bytes
Contents
module RestMan class Request class MakeCookieHeader < ActiveMethod::Base def call return nil if request.cookie_jar.nil? arr = request.cookie_jar.cookies(request.url) return nil if arr.empty? return HTTP::Cookie.cookie_value(arr) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rest-man-1.1.0 | lib/restman/request/make_cookie_header.rb |