lib/utopia/controller/base.rb
def succeed!(status: 200, headers: {}, type: nil, **options)
				status = HTTP::Status.new(status, 200...300)
				
				if type
					headers[CONTENT_TYPE] = type.to_s
				end
				
				body = body_for(status, headers, options)
				respond! [status.to_i, headers, body || []]
			end
# Succeed the request and immediately respond.
Succeed the request and immediately respond.
Succeed the request and immediately respond .
def succeed!(status: 200, headers: {}, type: nil, **options)
				status = HTTP::Status.new(status, 200...300)
				if type
					headers[CONTENT_TYPE] = type.to_s
				end
				body = body_for(status, headers, options)
				respond! [status.to_i, headers, body || []]
			end
def succeed! ( status : 200 , headers : { } , type : nil , ** options ) status = HTTP :: Status . new ( status , 200 ... 300 ) if type headers [ CONTENT_TYPE ] = type . to_s end body = body_for ( status , headers , options ) respond! [ status . to_i , headers , body || [ ] ] end
Succeed the request and immediately respond.
Succeed the request and immediately respond .
status
headers
type
options