Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nyzd authored Feb 5, 2024
1 parent a41b463 commit e49d7dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ export fn main (request: char[]): char[] {
```

The `main` function must return the HTTP response as an `char[]` or string. The return will be your app's response to the request.

Also checkout the [server.fig](https://github.com/fig-lang/fig/blob/main/examples/server.fig) example file there is a lot of helper functions that will make the generation of response, Or reading the request easier.

0 comments on commit e49d7dc

Please sign in to comment.