rbws 3.0.0-pr3 copy "rbws: ^3.0.0-pr3" to clipboard
rbws: ^3.0.0-pr3 copied to clipboard

really bad web server (another generic http/1.1 server implementation)

3.0.0-pr3 #

  • Breaking: Remove Rooted from the public API.
  • Renamed internal function HTTPServerInstance._conOnData to ._connectionDataHandler for clarity.
  • Fixed logic error in Rooted.prefixed()

3.0.0-pr2 #

  • Added Rooted, a mixin to standardize prefixing paths.
  • RootedAutoreleasingStore now conforms to Rooted.
  • Added RootedNoneStore, a subclass of NoneStore that provides a root. Uses Rooted.
  • Breaking: Renamed FilesystemStorable to Store.

3.0.0-pr1 #

  • Breaking: Renamed AutoreleasingCache.grab() to load() to conform to FilesystemStorable.
  • Breaking: Renamed AutoreleasingCache.clear() to purgeAll() to conform to FilesystemStorable.
  • Added FilesystemStorable, a mixin to standardize classes that load & store from the filesystem.
  • AutoreleasingCache now conforms to FilesystemStorable.
  • HTTPServerInstance.storage is now typed as FilesystemStorable.
  • Added RootedAutoreleasingCache, an extension of AutoreleasingCache that loads files from a specified prefix.
  • Breaking: Removed AutoreleasingCache.storeFromDisk(), use load().
  • Breaking: Removed AutoreleasingCache.storeFromDiskWithFalsePath(), use load() in combination with store().
  • Breaking: Removed AutoreleasingCache.replace(), use purge() then store().
  • Breaking: Removed HTTPServerInstance.defaultStorageLength, use AutoreleasingCache.defaultStorageDuration.

2.0.1 #

  • Export HTTPStatusCode and ServerRunningException (should've been exposed in 2.0.0)

2.0.0 #

  • Breaking: HTTPServerInstance.host and HTTPServerInstance.port now throw ServerRunningException in their setters if the server is running.
  • Breaking: Removed RBWSMethod.unrecognized, consider using RBWSMethod? and null instead.
  • Added ServerRunningException
  • Added HTTPStatusCode, a class that contains a bunch of static integer variables to neatly represent HTTP status codes inline.
  • Added exception handling to the connection listener in HTTPServerInstance._socketOnListen

1.2.0 #

  • Deprecated RBWSMethod.unrecognized, will be removed in next major release.
  • Added functions to AutoreleasingCache
    • contains
    • clear
    • setNewExpiration
    • replace
  • Added exception type for when a path in AutoreleasingCache does not exist yet was attempted to be read. (not breaking anything yet!)

1.1.3 #

  • Fixed header parse behavior
    • No longer adds trailing carriage returns
    • Ignores empty headers

1.1.2 #

  • Made the HandshakeException description more useful.
  • Errors with a server no longer cause the whole program to exit.
  • Insecure servers now announce errors to stderr.

1.1.1 #

  • Fixed where a malformed request causes server crash
    • Server now responds with 400 Bad Request

1.1.0 #

  • Made HTTPServerInstance more modular
    • Extracted Upgrade-Insecure-Requests handling into HTTPServerInstance.shouldUpgradeInsecureRequest
    • Extracted request -> method matching into HTTPServerInstance.matchRequestToMethodProcessFunction
  • Fixed typos

1.0.0 #

  • Initial version (rapid development phase)
2
likes
160
points
59
downloads

Documentation

API reference

Publisher

verified publisherfrykman.dev

Weekly Downloads

really bad web server (another generic http/1.1 server implementation)

Repository (GitHub)
View/report issues

Topics

#http #server

License

LGPL-3.0 (license)

Dependencies

mime

More

Packages that depend on rbws