Skip to content

Commit

Permalink
feat: Add a getRawUrl() in request context (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Embraser01 authored May 16, 2024
1 parent 79b21e7 commit 41d6e62
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .yarn/versions/225f960e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
releases:
"@typoas/runtime": patch
7 changes: 7 additions & 0 deletions packages/typoas-runtime/src/fetcher/request-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 41d6e62

Please sign in to comment.