Skip to content

Commit

Permalink
Added table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
Skiouros committed Nov 8, 2014
1 parent 8cdfe72 commit a4116cf
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions documentation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
Documentation
=====================

- [HttpServer](#httpserver)
* [LoadMimes(file)](#loadmimesfile)
* [GetMimeType(file)](#getmimetypefile)
* [ServeFile(ByRef response, file)](#servefilebyref-response-file)
* [SetPaths(paths)](#setpathspaths)
* [Serve(port)](#serveport)
* [Handle(ByRef request)](#handlebyref-request)

- [HttpRequest](#httprequest)
* [Headers](#headers)
* [Queries](#queries)
* [Path](#path)
* [Method](#method)
* [Protocol](#protocol)
* [IsMultipart](#ismultipart)
* [Done](#done)

- [HttpResponse](#httpresponse)
* [Headers](#headers-1)
* [Protocol](#protocol-1)
* [SetBody(ByRef body, length)](#setbodybyref-body-length)
* [SetBodyText(text)](#setbodytexttext)
* [Generate](#generate)

HttpServer
---------

Expand Down Expand Up @@ -106,19 +130,16 @@ response.protocol
```

#### SetBody(ByRef body, length)
Sets the request body.
Sets the responses body.
```
body - data for body of request
body - data for body of response
length - length of data
```

#### SetBodyText(text)
Sets the requests body as text.
```
text - text for body of request
```
Sets the responses body as text.

#### Generate
Returns a buffer that contains the response data.
Returns a buffer that contains the responses data.

----------

0 comments on commit a4116cf

Please sign in to comment.