(
file: Body.HttpBody.FileLike,
options?:
| (Options.WithContent & {
readonly bytesToRead?: FileSystem.SizeInput | undefined
readonly chunkSize?: FileSystem.SizeInput | undefined
readonly offset?: FileSystem.SizeInput | undefined
})
| undefined
)
| 505 | * @since 4.0.0 |
| 506 | */ |
| 507 | export const fileWeb = ( |
| 508 | file: Body.HttpBody.FileLike, |
| 509 | options?: |
| 510 | | (Options.WithContent & { |
| 511 | readonly bytesToRead?: FileSystem.SizeInput | undefined |
| 512 | readonly chunkSize?: FileSystem.SizeInput | undefined |
| 513 | readonly offset?: FileSystem.SizeInput | undefined |
| 514 | }) |
| 515 | | undefined |
| 516 | ): Effect.Effect<HttpServerResponse, never, HttpPlatform> => |
| 517 | Effect.flatMap(HttpPlatformKey, (platform) => platform.fileWebResponse(file, options)) |
| 518 | |
| 519 | /** |
| 520 | * Returns a response with the specified header set to the supplied value. |
nothing calls this directly
no outgoing calls
no test coverage detected