From 67551a42a6aa331d79dd50537d43b4821fff5145 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Fernandes Date: Tue, 14 May 2024 11:17:11 +0200 Subject: [PATCH] feat: Add a getRawUrl() in request context --- .yarn/versions/225f960e.yml | 2 ++ packages/typoas-runtime/src/fetcher/request-context.ts | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 .yarn/versions/225f960e.yml diff --git a/.yarn/versions/225f960e.yml b/.yarn/versions/225f960e.yml new file mode 100644 index 0000000..870c211 --- /dev/null +++ b/.yarn/versions/225f960e.yml @@ -0,0 +1,2 @@ +releases: + "@typoas/runtime": patch diff --git a/packages/typoas-runtime/src/fetcher/request-context.ts b/packages/typoas-runtime/src/fetcher/request-context.ts index 764ef53..832d091 100644 --- a/packages/typoas-runtime/src/fetcher/request-context.ts +++ b/packages/typoas-runtime/src/fetcher/request-context.ts @@ -49,6 +49,13 @@ export class RequestContext { }); } + /** + * Return the url parsed object. + */ + public getRawUrl(): ParsedUrl { + return this.url; + } + /** * Replaces the url set in the constructor with this url. *