Skip to content

Commit

Permalink
feat:update poster image
Browse files Browse the repository at this point in the history
  • Loading branch information
iyifr committed Oct 12, 2024
1 parent e89c2bd commit 8504d86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# H4.

![og](https://assets.uploadfast.dev/h4-poster-otek.png)
![og](https://assets.uploadfast.dev/opengraph-image-of9z.png)

A HTTP framework for productive and fun API development with dart.

Expand Down
8 changes: 3 additions & 5 deletions lib/utils/request_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import 'package:h4/src/event.dart';
/// ```dart
///
/// router.get('/foo', (event) {
/// // Incoming path --> '/foo?ref=producthunt'
/// // Incoming path --> '/foo?ref=product-hunt'
/// var res = getQueryParams(event)
/// var incomingRef = res["ref"] // "producthunt"
/// var incomingRef = res["ref"] // "product-hunt"
/// });
/// ```
getQueryParams(H4Event event) {
Expand Down Expand Up @@ -55,9 +55,7 @@ String? getRequestHeader(H4Event event, String header) {
}

/// ### Get the request headers object.
//////
/// Parameters:
/// - `event`: An `H4Event` instance containing the HTTP request.
///
///
/// Returns:
/// The headers of the incoming HTTP request.
Expand Down

0 comments on commit 8504d86

Please sign in to comment.