class OpenID::Server::WebResponse
I am a response to an OpenID request in terms a web server understands.
I generally come from an #Encoder, either directly or from #Server.encodeResponse.
Attributes
body[RW]
The body of this response.
code[RW]
The HTTP code of this response as an integer.
headers[RW]
Hash of headers to include in this response.
Public Class Methods
new(code=HTTP_OK, headers=nil, body="")
click to toggle source
# File lib/openid/server.rb, line 964 def initialize(code=HTTP_OK, headers=nil, body="") # Construct me. # # These parameters are assigned directly as class attributes, # see my class documentation for their # descriptions. @code = code if headers @headers = headers else @headers = {} end @body = body end