Skip to content

Commit

Permalink
Version 0.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Jul 18, 2018
1 parent 75c5b6b commit 0d769a3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
15 changes: 15 additions & 0 deletions changelog.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Jester changelog

## 0.4.0 - 18/07/2018

This is a major new release focusing on optimizations. In one specific benchmark
involving pipelined HTTP requests, the speed up was 650% in comparison to
Jester v0.3.0. For another benchmark using the `wrk` tool, with no pipelining,
the speed up was 178%.

A list of changes follows:

- **Breaking change:** The response headers are now stored in a more efficient
data structure called ``RawHeaders``. This new data structure is also stored
in an ``Option`` type, this makes some responses significantly more efficient.
- ``sendFile`` has been implemented, so it's now possible to easily respond
to a request with a file.

## 0.3.0 - 06/07/2018

This is a major new release containing many changes and improvements.
Expand Down
2 changes: 1 addition & 1 deletion jester.nim
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type
of RouteCode:
data: ResponseData

const jesterVer = "0.3.1"
const jesterVer = "0.4.0"

proc toStr(headers: Option[RawHeaders]): string =
return $newHttpHeaders(headers.get(@({:})))
Expand Down
4 changes: 2 additions & 2 deletions jester.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.3.1"
version = "0.4.0" # Be sure to update jester.jesterVer too!
author = "Dominik Picheta"
description = "A sinatra-like web framework for Nim."
license = "MIT"
Expand All @@ -13,7 +13,7 @@ skipDirs = @["tests"]
requires "nim >= 0.18.1"

when not defined(windows):
requires "httpbeast >= 0.1.1"
requires "httpbeast >= 0.2.0"

# For tests
requires "asynctools"
Expand Down
3 changes: 2 additions & 1 deletion readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ get "/":
setCookie("test", @"value", daysForward(5))
```

They can then be accessed from the ``request.cookies`` PStringTable.
They can then be accessed using the ``request.cookies`` procedure which returns
a ``Table[string, string]``.

## Request object

Expand Down

0 comments on commit 0d769a3

Please sign in to comment.