view Lib/IMPL/Web/Application/HttpResponseResource.pm @ 403:7171a8e2e2ba

dirty fix for url encoding
author sergey
date Tue, 20 May 2014 01:26:45 +0400
parents ef37ec102dab
children
line wrap: on
line source

package IMPL::Web::Application::HttpResponseResource;
use strict;

use IMPL::Const qw(:prop);
use IMPL::declare {
	require => {
		HttpResponse => 'IMPL::Web::HttpResponse'
	},
	base => [
		'IMPL::Object' => undef,
		'IMPL::Web::Application::ResourceInterface' => undef
	],
	props => [
		response => PROP_RW
	]
};

sub CTOR {
	my ($this,%args) = @_;
	
	$this->response($args{response} || HttpResponse->NoContent);
}

sub FetchChildResource {
	return shift;
}

sub InvokeHttpVerb {
	return shift->response;
}

1;