# Guide

One page for each part of Bond.

## Pages in this section

- [Routing](https://www.agentica-lang.com/bond/guide/routing/index.md): Routes, path params and what happens when nothing matches.
- [Conn and helpers](https://www.agentica-lang.com/bond/guide/conn/index.md): The Conn struct and the helpers that build an answer.
- [Query and forms](https://www.agentica-lang.com/bond/guide/query/index.md): Read the query string and a form body, decoded with std/uri.
- [JSON bodies](https://www.agentica-lang.com/bond/guide/json/index.md): Decode the JSON body of a request into a struct.
- [Cookies](https://www.agentica-lang.com/bond/guide/cookies/index.md): Read the cookies of a request and set or delete them in the answer, with std/cookie.
- [Sessions](https://www.agentica-lang.com/bond/guide/sessions/index.md): Keep the data of a visitor in a signed cookie, with no store on the server.
- [Cross-site requests](https://www.agentica-lang.com/bond/guide/csrf/index.md): Refuse a POST that a page of another site sent, with no token in the forms.
- [Static files](https://www.agentica-lang.com/bond/guide/static/index.md): Serve the files of a folder under a path, with the type from std/mime and no way out of the folder.
- [HTML and escaping](https://www.agentica-lang.com/bond/guide/escaping/index.md): Keep a value of the client from becoming markup, with Bond.escape, by hand or in an EAG template.
- [Filters](https://www.agentica-lang.com/bond/guide/filters/index.md): Code that runs before and after every route.
- [Errors](https://www.agentica-lang.com/bond/guide/errors/index.md): What a failure answers, and the not_found and on_error handlers.
- [Running and options](https://www.agentica-lang.com/bond/guide/server/index.md): Bond.run, Bond.start and the options of the HTTP server.
- [Testing](https://www.agentica-lang.com/bond/guide/testing/index.md): Run an app in process with Testing.request, with no socket.
- [Streaming](https://www.agentica-lang.com/bond/guide/streaming/index.md): Answer with a body that is sent piece by piece, such as server-sent events.
- [Sending files](https://www.agentica-lang.com/bond/guide/files/index.md): Answer with a file of any size, with its length, validators for a 304, a download name and byte ranges.
- [Views](https://www.agentica-lang.com/bond/guide/views/index.md): Pages from EAG templates, with partials and a layout, as plain functions that return a String.
- [WebSockets](https://www.agentica-lang.com/bond/guide/websockets/index.md): A WebSocket route on the same port as the pages and the streams, with the Origin check.
- [Uploads](https://www.agentica-lang.com/bond/guide/uploads/index.md): Read a multipart/form-data form with files, saved to disk as they arrive, with size caps.
