Skip to content

Commit

Permalink
Layout fix (what?) in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin de Graaf committed Mar 27, 2019
1 parent eb21610 commit 461aa8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ us code `200`, with the body set as passed to the `Response` upon creation.

## API

#### Request
### Request

- `getMethod(): string` - returns GET, POST, etc.
- `getUri(): Uri` - return a `Uri` object representing the uri being requested
Expand All @@ -70,7 +70,7 @@ From the `HasHeaders` trait:
- `getHeader(string $header): ?string` - get a single header by string, `null` if non-existing
- `getHeaders(): string[]` - get all headers

#### Response
### Response

- `getBody(): ?string` - the body to be sent
- `setBody(string $body): void` - set the body as a string
Expand All @@ -96,7 +96,7 @@ From the `HasStatusCode` trait:
- `getStatusCodeText(): ?string` - the status code text to be sent (i.e. `OK`)
- `setStatusCode(int $statusCode): void` - set the status code

#### Dispatcher
### Dispatcher

- `dispatch(Response $response): void` - dispatch a Response, sending all its content as set
- `dispatchAndTerminate(Response $response, int $exitCode = 0): void` - dispatch a Response and terminate, i.e., ending program flow immediately afterwards
Expand Down

0 comments on commit 461aa8d

Please sign in to comment.