HttpBodyHandler constructor

HttpBodyHandler({
  1. Encoding defaultEncoding = utf8,
})

Create a new HttpBodyHandler to be used with a Stream<HttpRequest>, e.g. a HttpServer.

If the page is served using different encoding than UTF-8, set defaultEncoding accordingly. This is required for parsing multipart/form-data content correctly. See the class comment for more information on multipart/form-data.

Implementation

HttpBodyHandler({Encoding defaultEncoding = utf8})
    : _defaultEncoding = defaultEncoding;