Skip to content

Commit

Permalink
chore: format files
Browse files Browse the repository at this point in the history
  • Loading branch information
francescovallone committed Dec 28, 2024
1 parent a3076b3 commit 6cbb30a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions packages/serinus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.3

- chore: format the codebase with the latest version of dartfmt

## 1.0.2

- chore: update dependencies to the latest version
Expand Down
2 changes: 1 addition & 1 deletion packages/serinus/lib/src/handlers/request_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class RequestHandler extends Handler {
if (bodyValue != null) bodyValue,
...context.params.values
]);
if(result is Future) {
if (result is Future) {
result = await result;
}
}
Expand Down
3 changes: 2 additions & 1 deletion packages/serinus/lib/src/http/internal_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ class InternalRequest {
}
headers[name] = values.join(',');
});
return InternalRequest(headers: headers, original: request, port: port, host: host);
return InternalRequest(
headers: headers, original: request, port: port, host: host);
}

/// The [cookies] property contains the cookies of the request
Expand Down
8 changes: 4 additions & 4 deletions packages/serinus/lib/src/http/request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ class Request {
ContentType get contentType => _original.contentType;

/// The host of the request.
///
///
/// It returns a concatenated string of the host and the port.
///
///
/// Example:
/// ```dart
/// final host = request.host; /// localhost:3000
/// ```
String get host => '${_original.host}:${_original.port}';

/// The hostname of the request.
///
///
/// It returns the host of the request.
///
///
/// Example:
/// ```dart
/// final hostname = request.hostname; /// localhost
Expand Down
2 changes: 1 addition & 1 deletion packages/serinus/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Serinus is a framework written in Dart
documentation: https://serinus.app
homepage: https://serinus.app
repository: https://github.com/francescovallone/serinus
version: 1.0.2
version: 1.0.3
funding:
- https://github.com/sponsors/francescovallone
topics:
Expand Down

0 comments on commit 6cbb30a

Please sign in to comment.