Skip to content

Commit

Permalink
Add generic type parameter to BaseRequestBuilder to be able to use wi…
Browse files Browse the repository at this point in the history
…thUrl (#2)
  • Loading branch information
ricardoboss committed Feb 9, 2024
1 parent 63b687a commit 6e59366
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/base_request_builder.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
part of '../kiota_abstractions.dart';

/// Base class for all request builders.
abstract class BaseRequestBuilder {
abstract class BaseRequestBuilder<T extends BaseRequestBuilder<T>> {
BaseRequestBuilder(
this.requestAdapter,
this.urlTemplate,
Expand All @@ -16,4 +16,7 @@ abstract class BaseRequestBuilder {

/// Url template to use to build the URL for the current request builder.
String urlTemplate;

/// Returns the request builder with the provided URL.
T withUrl(String rawUrl);
}

0 comments on commit 6e59366

Please sign in to comment.