Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 424063002: Add 'pathPrefix' optional argument to VirtualDirectory constructor. (Closed)

Created:
6 years, 4 months ago by Anders Johnsen
Modified:
6 years, 4 months ago
Reviewers:
kevmoo
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add 'pathPrefix' optional argument to VirtualDirectory constructor. By setting the pathPrefix, all incoming requests are expected to have its uri starting with the path. Then, before doing resource lookup, the prefix is trimmed from the path. BUG=https://code.google.com/p/dart/issues/detail?id=17353 R=kevmoo@google.com Committed: https://code.google.com/p/dart/source/detail?r=38720

Patch Set 1 #

Patch Set 2 : Push version. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -4 lines) Patch
M pkg/http_server/lib/src/virtual_directory.dart View 2 chunks +27 lines, -3 lines 0 comments Download
M pkg/http_server/pubspec.yaml View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/http_server/test/virtual_directory_test.dart View 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Anders Johnsen
I'm open for alternative names, but I found pathPrefix the easiest to explain so far.
6 years, 4 months ago (2014-07-29 08:31:29 UTC) #1
kevmoo
lgtm
6 years, 4 months ago (2014-07-29 18:14:01 UTC) #2
Anders Johnsen
6 years, 4 months ago (2014-07-30 06:50:30 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r38720 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698