shelf icon indicating copy to clipboard operation
shelf copied to clipboard

Web server middleware for Dart

Results 80 shelf issues
Sort by recently updated
recently updated
newest added

I am using curl to upload a file to my shelf server, request contains header `Expect: 100-continue`, now curl abort by `curl: (52) Empty reply from server`, the correct responding...

I know from https://github.com/dart-lang/web_socket_channel/issues/164#issuecomment-1026354706 dart will convert all request header key to lowercase. and in this repo,we can see some code like this: ```dart final connection = request.headers['Connection']; if (connection...

This is the direct reference from the code documentation: ``` A handler that proxies requests to [url]. To generate the proxy request, this concatenates [url] and [Request.url]. This means that...

package:shelf_proxy

I am using ``` await serve(pipeline.addHandler(app), InternetAddress.anyIPv6, 10000); ``` to serve my webserver. I can reach it by entering 34.141.63.80:10000 in the browser but the domain i linked to 34.141.63.80...

package:shelf

代码: File file = File(videoModel.video_path!); return shelf.Response.ok(File(file.path!).openRead(), headers: {'Content-Type': 'video/mp4'}); url: http://192.168.31.46:8080/kkk/1.mp4 当我像上面那样设置返回一个视频,在浏览器可以正常打开视频, 但是用视频播放器打开播放不了,还需要设置什么参数吗?

package:shelf

i wanna write a file download server. as Response code as following ``` return Response( 200, body: File(file.path!).openRead(), headers: headers, ); ``` as u see, i send file as stream...

package:shelf_router

I found some requests from DLNA devices never closed(We use shelf_static in DLNA(uPNP) serve video files) Since we cannot change the devices and for security reason and avoide too many...

package:shelf_static

- [x ] I’ve reviewed the contributor guide and applied the relevant portions to this PR. --- Updated: With the `Response.context` populated with the processed `File`, other `Middleware` can manipulate...

package:shelf_static

## 1.Specific operations: Set up windows proxy server: ![image](https://github.com/dart-lang/shelf/assets/30982989/34684e80-fb36-4430-ba99-c475d093b717) ## 2.Then create http server ```dart import 'package:shelf/shelf.dart' as shelf; import 'package:shelf/shelf_io.dart' as shelf_io; import 'package:shelf_proxy/shelf_proxy.dart' as proxy; void main() async...

package:shelf

`Request` and `Response` are immutable and so is the `context` member. The documentation for context makes it seem easy to signal information to middleware and handlers. 1. Update `context` to...

type-enhancement
package:shelf