This repository was archived by the owner on Jul 10, 2022. It is now read-only.
File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ This are the differences to the PHP version:
18
18
Through [ NPM] ( https://www.npmjs.com ) as [ @chubbyjs/psr-http-message ] [ 1 ] .
19
19
20
20
``` sh
21
- npm i @chubbyjs/psr-http-message@1.1.2
21
+ npm i @chubbyjs/psr-http-message@1.2.0
22
22
```
23
23
24
24
## Copyright
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @chubbyjs/psr-http-message" ,
3
- "version" : " 1.1.2 " ,
3
+ "version" : " 1.2.0 " ,
4
4
"description" : " Common Http-message Interface (PHP FIG PSR-7)." ,
5
5
"keywords" : [
6
6
" psr" ,
34
34
},
35
35
"publishConfig" : {
36
36
"access" : " public"
37
+ },
38
+ "dependencies" : {
39
+ "@types/node" : " ^12"
37
40
}
38
41
}
Original file line number Diff line number Diff line change 1
1
import MessageInterface from './MessageInterface' ;
2
2
import UriInterface from './UriInterface' ;
3
3
4
+ export enum Method {
5
+ CONNECT = 'CONNECT' ,
6
+ DELETE = 'DELETE' ,
7
+ GET = 'GET' ,
8
+ HEAD = 'HEAD' ,
9
+ OPTIONS = 'OPTIONS' ,
10
+ PATCH = 'PATCH' ,
11
+ POST = 'POST' ,
12
+ PUT = 'PUT' ,
13
+ TRACE = 'TRACE' ,
14
+ }
15
+
4
16
interface RequestInterface extends MessageInterface {
5
17
getRequestTarget ( ) : string ;
6
18
withRequestTarget ( requestTarget : string ) : this;
7
19
getMethod ( ) : string ;
8
- withMethod ( name : string ) : this;
20
+ withMethod ( name : Method ) : this;
9
21
getUri ( ) : UriInterface ;
10
22
withUri ( uri : UriInterface , preserveHost ?: boolean ) : this;
11
23
}
You can’t perform that action at this time.
0 commit comments