Skip to content

Commit

Permalink
added custom header attributes and various or adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklaw5 committed Nov 10, 2015
1 parent 7ab6ba9 commit bdf9eda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Larapi::respondAccepted(); // 202 HTTP Response
```

**Example: Return HTTP OK**

This:
```php
// app/Http/routes.php
Expand All @@ -56,6 +57,7 @@ Content-Type: application/json
```

**Example: Return HTTP OK with Response Data**

This:
```php
// app/Http/routes.php
Expand Down Expand Up @@ -98,6 +100,7 @@ Content-Type: application/json
```

**Example: Return HTTP OK with Custom Response Headers**

This:
```php
// app/Http/routes.php
Expand Down Expand Up @@ -161,6 +164,7 @@ Larapi::respondNotAvailable(); // 503 HTTP Response


**Example: Return HTTP Bad Request**

This:
```php
// app/Http/routes.php
Expand All @@ -185,6 +189,7 @@ Content-Type: application/json
```

**Example: Return HTTP Bad Request with Custom Application Error Message**

This:
```php
// app/Http/routes.php
Expand Down Expand Up @@ -216,6 +221,7 @@ Content-Type: application/json
```

**Example: Return HTTP Bad Request with Custom Application Error Message**

This:
```php
// app/Http/routes.php
Expand Down

0 comments on commit bdf9eda

Please sign in to comment.