Skip to content

Commit

Permalink
Add docs for v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Jan 21, 2022
1 parent 1893746 commit 02259e3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,26 @@

## [Unreleased](https://github.com/sansyrox/robyn/tree/HEAD)

[Full Changelog](https://github.com/sansyrox/robyn/compare/v0.11.0...HEAD)
[Full Changelog](https://github.com/sansyrox/robyn/compare/v0.11.1...HEAD)

**Closed issues:**

- Consider adding startup events [\#153](https://github.com/sansyrox/robyn/issues/153)
- Remove poetry dependency [\#150](https://github.com/sansyrox/robyn/issues/150)

**Merged pull requests:**

- Add Event handlers [\#154](https://github.com/sansyrox/robyn/pull/154) ([sansyrox](https://github.com/sansyrox))
- Remove poetry [\#152](https://github.com/sansyrox/robyn/pull/152) ([sansyrox](https://github.com/sansyrox))
- Use print instead of input after starting server [\#149](https://github.com/sansyrox/robyn/pull/149) ([klaa97](https://github.com/klaa97))
- Fix dev server [\#148](https://github.com/sansyrox/robyn/pull/148) ([sansyrox](https://github.com/sansyrox))
- URL queries [\#146](https://github.com/sansyrox/robyn/pull/146) ([patchgamestudio](https://github.com/patchgamestudio))
- Add project wide flake8 settings [\#143](https://github.com/sansyrox/robyn/pull/143) ([sansyrox](https://github.com/sansyrox))

## [v0.11.1](https://github.com/sansyrox/robyn/tree/v0.11.1) (2022-01-11)

[Full Changelog](https://github.com/sansyrox/robyn/compare/v0.11.0...v0.11.1)

## [v0.11.0](https://github.com/sansyrox/robyn/tree/v0.11.0) (2022-01-07)

[Full Changelog](https://github.com/sansyrox/robyn/compare/v0.10.0...v0.11.0)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "robyn"
version = "0.11.1"
version = "0.12.0"
authors = ["Sanskar Jethi <[email protected]>"]
edition = "2018"
description = "A web server that is fast!"
Expand Down
16 changes: 16 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,22 @@ app.add_header("server", "robyn")

```

## Events

You can add startup and shutdown events in robyn. These events will execute before the requests have started serving and after the serving has been completed.

```python3

async def startup_handler():
logger.log(logging.INFO, "Starting up")

app.startup_handler(startup_handler)

@app.shutdown_handler
def shutdown_handler():
logger.log(logging.INFO, "Shutting down")
```

## WebSockets

You can now serve websockets using Robyn.
Expand Down
1 change: 1 addition & 0 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
- WebSocket!
- Hot Reloading (Still experimental)
- Query Params
- Events (Startup and Shutdown)
- Community First and truly FOSS!

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "robyn"
version = "0.11.1"
version = "0.12.0"
description = "A web server that is fast!"
authors = ["Sanskar Jethi <[email protected]>"]

Expand Down

0 comments on commit 02259e3

Please sign in to comment.