-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move http search params apis to ServerRequest module (#2669)
- Loading branch information
Showing
13 changed files
with
275 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"@effect/platform": minor | ||
--- | ||
|
||
move http search params apis to ServerRequest module | ||
|
||
If you want to access the search params for a request, you can now use the `Http.request.ParsedSearchParams` tag. | ||
|
||
```ts | ||
import * as Http from "@effect/platform/HttpServer" | ||
import { Effect } from "effect" | ||
|
||
Effect.gen(function* () { | ||
const searchParams = yield* Http.request.ParsedSearchParams | ||
console.log(searchParams) | ||
}) | ||
``` | ||
|
||
The schema method has also been moved to the `ServerRequest` module. It is now available as `Http.request.schemaSearchParams`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,6 @@ | |
} | ||
}, | ||
"dependencies": { | ||
"multipasta": "^0.2.0" | ||
"multipasta": "^0.2.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.