Skip to content

Commit 015bb78

Browse files
committed
chore(release): 1.1.0
1 parent 6c3e127 commit 015bb78

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

docs/classes/_poppinss_http_server.httpcontext.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Http context is passed to all route handlers, middleware, error handler and serv
2727
* [route](_poppinss_http_server.httpcontext.md#route)
2828
* [subdomains](_poppinss_http_server.httpcontext.md#subdomains)
2929

30+
### Methods
31+
32+
* [create](_poppinss_http_server.httpcontext.md#create)
33+
3034
---
3135

3236
## Constructors
@@ -94,3 +98,27 @@ ___
9498

9599
___
96100

101+
## Methods
102+
103+
<a id="create"></a>
104+
105+
### `<Static>` create
106+
107+
**create**(routePattern: *`string`*, routeParams: *`any`*, req?: *`IncomingMessage`*, res?: *`ServerResponse`*, serverConfig?: *`ServerConfig`*): [HttpContext](_poppinss_http_server.httpcontext.md)
108+
109+
Creates a new fake context instance for a given route.
110+
111+
**Parameters:**
112+
113+
| Name | Type |
114+
| ------ | ------ |
115+
| routePattern | `string` |
116+
| routeParams | `any` |
117+
| `Optional` req | `IncomingMessage` |
118+
| `Optional` res | `ServerResponse` |
119+
| `Optional` serverConfig | `ServerConfig` |
120+
121+
**Returns:** [HttpContext](_poppinss_http_server.httpcontext.md)
122+
123+
___
124+

docs/modules/_poppinss_http_server.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* [dropSlash](_poppinss_http_server.md#dropslash)
2222
* [finalMiddlewareHandler](_poppinss_http_server.md#finalmiddlewarehandler)
2323
* [finalRouteHandler](_poppinss_http_server.md#finalroutehandler)
24+
* [getServerConfig](_poppinss_http_server.md#getserverconfig)
25+
* [makeUrl](_poppinss_http_server.md#makeurl)
2426
* [routePreProcessor](_poppinss_http_server.md#routepreprocessor)
2527
* [toRoutesJSON](_poppinss_http_server.md#toroutesjson)
2628
* [useReturnValue](_poppinss_http_server.md#usereturnvalue)
@@ -90,6 +92,41 @@ Final handler executes the route handler based on it's resolved type and the res
9092

9193
**Returns:** `Promise`<`void`>
9294

95+
___
96+
<a id="getserverconfig"></a>
97+
98+
### getServerConfig
99+
100+
**getServerConfig**(serverConfig: *`Partial`<`ServerConfig`>*): `ServerConfig`
101+
102+
Returns server config by merging the user options with the default options.
103+
104+
**Parameters:**
105+
106+
| Name | Type |
107+
| ------ | ------ |
108+
| serverConfig | `Partial`<`ServerConfig`> |
109+
110+
**Returns:** `ServerConfig`
111+
112+
___
113+
<a id="makeurl"></a>
114+
115+
### makeUrl
116+
117+
**makeUrl**(pattern: *`string`*, options: *`object`*): `string`
118+
119+
Makes url for a route pattern and params and querystring.
120+
121+
**Parameters:**
122+
123+
| Name | Type |
124+
| ------ | ------ |
125+
| pattern | `string` |
126+
| options | `object` |
127+
128+
**Returns:** `string`
129+
93130
___
94131
<a id="routepreprocessor"></a>
95132

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@poppinss/http-server",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Extracted copy of AdonisJs HTTP server along with it's router",
55
"main": "build/index.js",
66
"files": [

0 commit comments

Comments
 (0)