Skip to content

Commit

Permalink
Doc fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Feb 11, 2011
1 parent 7c2899a commit f535fe1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,22 @@ As a writable stream it accepts the body of an HTTP request. As a readable strea

# Convenience methods

## request.defaults(options)
### request.defaults(options)

This method returns a wrapper around the normal request API that defaults to whatever options you pass in to it.

## request.put
### request.put

Same as request() but defaults to `method: "PUT"`.

## request.post
### request.post

Same as request() but defaults to `method: "POST"`.

## request.head
### request.head

Same as request() but defaults to `method: "HEAD"`.

## request.get
### request.get

Alias to normal request method for uniformity.

0 comments on commit f535fe1

Please sign in to comment.