Skip to content
This repository was archived by the owner on Jul 10, 2022. It is now read-only.

Commit 465874a

Browse files
committed
Fix get method
1 parent 49073c2 commit 465874a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This are the differences to the PHP version:
1818
Through [NPM](https://www.npmjs.com) as [@chubbyjs/psr-http-message][1].
1919

2020
```sh
21-
npm i @chubbyjs/[email protected].0
21+
npm i @chubbyjs/[email protected].1
2222
```
2323

2424
## Copyright

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chubbyjs/psr-http-message",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Common Http-message Interface (PHP FIG PSR-7).",
55
"keywords": [
66
"psr",

src/RequestInterface.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export enum Method {
1616
interface RequestInterface extends MessageInterface {
1717
getRequestTarget(): string;
1818
withRequestTarget(requestTarget: string): this;
19-
getMethod(): string;
19+
getMethod(): Method;
2020
withMethod(name: Method): this;
2121
getUri(): UriInterface;
2222
withUri(uri: UriInterface, preserveHost?: boolean): this;

0 commit comments

Comments
 (0)