Skip to content

Commit 424f807

Browse files
committed
feat: add response util methods and response decorator
Release-As: 0.0.4
1 parent c1cdabd commit 424f807

File tree

214 files changed

+2700
-2012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+2700
-2012
lines changed

docs/BinaryFileResponse/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[**HTTP Core Documentation v0.0.32**](../README.md)
1+
[**HTTP Core Documentation v0.0.33**](../README.md)
22

33
***
44

docs/BinaryFileResponse/classes/BinaryFileResponse.md

Lines changed: 227 additions & 153 deletions
Large diffs are not rendered by default.

docs/BinaryFileResponse/interfaces/BinaryFileResponseOptions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
[**HTTP Core Documentation v0.0.32**](../../README.md)
1+
[**HTTP Core Documentation v0.0.33**](../../README.md)
22

33
***
44

55
[HTTP Core Documentation](../../modules.md) / [BinaryFileResponse](../README.md) / BinaryFileResponseOptions
66

77
# Interface: BinaryFileResponseOptions
88

9-
Defined in: [src/BinaryFileResponse.ts:13](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/BinaryFileResponse.ts#L13)
9+
Defined in: [src/BinaryFileResponse.ts:14](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/BinaryFileResponse.ts#L14)
1010

1111
Options for creating a BinaryFile HTTP Response.
1212

@@ -24,39 +24,39 @@ Options for creating a BinaryFile HTTP Response.
2424

2525
> `optional` **autoEtag**: `boolean`
2626
27-
Defined in: [src/BinaryFileResponse.ts:14](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/BinaryFileResponse.ts#L14)
27+
Defined in: [src/BinaryFileResponse.ts:15](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/BinaryFileResponse.ts#L15)
2828

2929
***
3030

3131
### autoLastModified?
3232

3333
> `optional` **autoLastModified**: `boolean`
3434
35-
Defined in: [src/BinaryFileResponse.ts:16](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/BinaryFileResponse.ts#L16)
35+
Defined in: [src/BinaryFileResponse.ts:17](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/BinaryFileResponse.ts#L17)
3636

3737
***
3838

3939
### contentDispositionType?
4040

4141
> `optional` **contentDispositionType**: `string`
4242
43-
Defined in: [src/BinaryFileResponse.ts:17](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/BinaryFileResponse.ts#L17)
43+
Defined in: [src/BinaryFileResponse.ts:18](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/BinaryFileResponse.ts#L18)
4444

4545
***
4646

4747
### file
4848

4949
> **file**: `string` \| [`File`](../../file/File/classes/File.md)
5050
51-
Defined in: [src/BinaryFileResponse.ts:15](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/BinaryFileResponse.ts#L15)
51+
Defined in: [src/BinaryFileResponse.ts:16](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/BinaryFileResponse.ts#L16)
5252

5353
***
5454

5555
### headers?
5656

5757
> `optional` **headers**: [`HeadersType`](../../declarations/type-aliases/HeadersType.md)
5858
59-
Defined in: [src/OutgoingHttpResponse.ts:21](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/OutgoingHttpResponse.ts#L21)
59+
Defined in: [src/OutgoingHttpResponse.ts:22](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/OutgoingHttpResponse.ts#L22)
6060

6161
#### Inherited from
6262

docs/HttpErrorHandler/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[**HTTP Core Documentation v0.0.32**](../README.md)
1+
[**HTTP Core Documentation v0.0.33**](../README.md)
22

33
***
44

docs/HttpErrorHandler/classes/HttpErrorHandler.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
[**HTTP Core Documentation v0.0.32**](../../README.md)
1+
[**HTTP Core Documentation v0.0.33**](../../README.md)
22

33
***
44

55
[HTTP Core Documentation](../../modules.md) / [HttpErrorHandler](../README.md) / HttpErrorHandler
66

77
# Class: HttpErrorHandler
88

9-
Defined in: [src/HttpErrorHandler.ts:17](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/HttpErrorHandler.ts#L17)
9+
Defined in: [src/HttpErrorHandler.ts:17](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/HttpErrorHandler.ts#L17)
1010

11-
Class representing an BrowserErrorHandler.
11+
Class representing an HttpErrorHandler.
1212

1313
## Implements
1414

@@ -20,17 +20,17 @@ Class representing an BrowserErrorHandler.
2020

2121
> **new HttpErrorHandler**(`options`): [`HttpErrorHandler`](HttpErrorHandler.md)
2222
23-
Defined in: [src/HttpErrorHandler.ts:25](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/HttpErrorHandler.ts#L25)
23+
Defined in: [src/HttpErrorHandler.ts:25](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/HttpErrorHandler.ts#L25)
2424

25-
Create an BrowserErrorHandler.
25+
Create an HttpErrorHandler.
2626

2727
#### Parameters
2828

2929
##### options
3030

3131
[`HttpErrorHandlerOptions`](../interfaces/HttpErrorHandlerOptions.md)
3232

33-
BrowserErrorHandler options.
33+
HttpErrorHandler options.
3434

3535
#### Returns
3636

@@ -42,7 +42,7 @@ BrowserErrorHandler options.
4242

4343
> **handle**(`error`, `_event`): [`OutgoingHttpResponse`](../../OutgoingHttpResponse/classes/OutgoingHttpResponse.md)
4444
45-
Defined in: [src/HttpErrorHandler.ts:40](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/HttpErrorHandler.ts#L40)
45+
Defined in: [src/HttpErrorHandler.ts:40](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/HttpErrorHandler.ts#L40)
4646

4747
Handle an error.
4848

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
[**HTTP Core Documentation v0.0.32**](../../README.md)
1+
[**HTTP Core Documentation v0.0.33**](../../README.md)
22

33
***
44

55
[HTTP Core Documentation](../../modules.md) / [HttpErrorHandler](../README.md) / HttpErrorHandlerOptions
66

77
# Interface: HttpErrorHandlerOptions
88

9-
Defined in: [src/HttpErrorHandler.ts:10](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/HttpErrorHandler.ts#L10)
9+
Defined in: [src/HttpErrorHandler.ts:10](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/HttpErrorHandler.ts#L10)
1010

11-
BrowserErrorHandler options.
11+
HttpErrorHandler options.
1212

1313
## Properties
1414

1515
### logger
1616

1717
> **logger**: `ILogger`
1818
19-
Defined in: [src/HttpErrorHandler.ts:11](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/HttpErrorHandler.ts#L11)
19+
Defined in: [src/HttpErrorHandler.ts:11](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/HttpErrorHandler.ts#L11)

docs/HttpResponse/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
[**HTTP Core Documentation v0.0.32**](../README.md)
1+
[**HTTP Core Documentation v0.0.33**](../README.md)
22

33
***
44

55
[HTTP Core Documentation](../modules.md) / HttpResponse
66

77
# HttpResponse
88

9-
## Variables
10-
11-
- [HttpResponse](variables/HttpResponse.md)
12-
139
## Functions
1410

1511
- [badRequestHttpResponse](functions/badRequestHttpResponse.md)

docs/HttpResponse/functions/badRequestHttpResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[**HTTP Core Documentation v0.0.32**](../../README.md)
1+
[**HTTP Core Documentation v0.0.33**](../../README.md)
22

33
***
44

@@ -8,7 +8,7 @@
88

99
> **badRequestHttpResponse**(`content`, `headers`): [`OutgoingHttpResponse`](../../OutgoingHttpResponse/classes/OutgoingHttpResponse.md)
1010
11-
Defined in: [src/HttpResponse.ts:60](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/HttpResponse.ts#L60)
11+
Defined in: [src/HttpResponse.ts:60](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/HttpResponse.ts#L60)
1212

1313
Create a 400(Bad Request) OutgoingHttpResponse.
1414

docs/HttpResponse/functions/createHttpResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[**HTTP Core Documentation v0.0.32**](../../README.md)
1+
[**HTTP Core Documentation v0.0.33**](../../README.md)
22

33
***
44

@@ -8,7 +8,7 @@
88

99
> **createHttpResponse**(`content`, `statusCode`, `headers`): [`OutgoingHttpResponse`](../../OutgoingHttpResponse/classes/OutgoingHttpResponse.md)
1010
11-
Defined in: [src/HttpResponse.ts:28](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/HttpResponse.ts#L28)
11+
Defined in: [src/HttpResponse.ts:28](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/HttpResponse.ts#L28)
1212

1313
Create an OutgoingHttpResponse.
1414

docs/HttpResponse/functions/emptyHttpResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[**HTTP Core Documentation v0.0.32**](../../README.md)
1+
[**HTTP Core Documentation v0.0.33**](../../README.md)
22

33
***
44

@@ -8,7 +8,7 @@
88

99
> **emptyHttpResponse**(`statusCode`, `headers`): [`OutgoingHttpResponse`](../../OutgoingHttpResponse/classes/OutgoingHttpResponse.md)
1010
11-
Defined in: [src/HttpResponse.ts:207](https://github.com/stonemjs/http-core/blob/680e946aeb5100b42b4836417719aba730586478/src/HttpResponse.ts#L207)
11+
Defined in: [src/HttpResponse.ts:207](https://github.com/stonemjs/http-core/blob/01ff4806cd9165b6846329e5f909f61f5c067d6a/src/HttpResponse.ts#L207)
1212

1313
Create a 204(No content) empty JSON OutgoingHttpResponse.
1414

0 commit comments

Comments
 (0)