Mercurial > pub > Impl
comparison Lib/IMPL/Web/AutoLocator.pm @ 256:32aceba4ee6d
corrected ViewHandlers to handle cookies and headers.
Dirty hacks to handle binary data
RestController doesn't deal with file extensions anymore.
| author | sergey |
|---|---|
| date | Wed, 12 Dec 2012 04:29:50 +0400 |
| parents | a02b110da931 |
| children | 6dc1c369eb71 |
comparison
equal
deleted
inserted
replaced
| 255:827cf96faa1c | 256:32aceba4ee6d |
|---|---|
| 69 my $url = URI->new($this->view ? $this->base . "." . $this->view : $this->base); | 69 my $url = URI->new($this->view ? $this->base . "." . $this->view : $this->base); |
| 70 $url->query_form($this->query); | 70 $url->query_form($this->query); |
| 71 $url->fragment($this->hash); | 71 $url->fragment($this->hash); |
| 72 | 72 |
| 73 return $url; | 73 return $url; |
| 74 } | |
| 75 | |
| 76 sub ToAbsolute { | |
| 77 my ($this,$baseUrl) = @_; | |
| 78 | |
| 79 return URI->new_abs( $this->url, $baseUrl ); | |
| 74 } | 80 } |
| 75 | 81 |
| 76 sub toString { | 82 sub toString { |
| 77 shift->url->as_string(); | 83 shift->url->as_string(); |
| 78 } | 84 } |
