Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few updates to the GitBook doc page #8

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ listening at port `3000`.
By adding *routes* to our server, we can respond to requests
sent to different URL's.

Let's a handler at the *root* of our server, and print
Let's add a handler to the *root* of our server, and print
a simple `Hello, world!` message.

From this point, all new code needs to be added *before*
Expand Down Expand Up @@ -333,4 +333,4 @@ https://pub.dartlang.org/packages?q=dependency%3Aangel_framework
Don't forget that for discussion and support, you can either
file a Github issue, or join the Gitter chat:

https://gitter.im/angel_dart/discussion
https://gitter.im/angel_dart/discussion
2 changes: 1 addition & 1 deletion guides/requests-and-responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Angel is inspired by Express, and such, request handlers in general resemble those from Express. Request handlers can return any Dart object \(see [how they are handled](requests-and-responses.md#return-values)\). Basic request handlers accept two parameters:

* [`RequestContext`](https://www.dartdocs.org/documentation/angel_framework/latest/angel_framework/RequestContext-class.html) - Contains vital information about the client requesting a resource, such as request method, request body, IP address, etc. The request object can also be used to pass information from one handler to the next.
* [`ResponseContext`](https://www.dartdocs.org/documentation/angel_framework/latest/angel_framework/ResponseContext-class.html) - Allows you to send headers, write data, and more, to be sent to the client. To prevent a response from being modified by future handlers, call `res.end()` to prevent further writing.
* [`ResponseContext`](https://www.dartdocs.org/documentation/angel_framework/latest/angel_framework/ResponseContext-class.html) - Allows you to send headers, write data, and more, to be sent to the client. To prevent a response from being modified by future handlers, call `res.close()` to prevent further writing.

### Return Values

Expand Down