Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

No head method on client #41

Closed
adrienDog opened this issue Feb 12, 2015 · 2 comments
Closed

No head method on client #41

adrienDog opened this issue Feb 12, 2015 · 2 comments

Comments

@adrienDog
Copy link

Hello !

I can't seem to find how to send head requests with request-json, but the basic request module has this method available.
Am I doing something wrong ?

client.head('/api/example', function(err, res, body){
    ...
}

I get this error message in the console

TypeError: Object #<JsonClient> has no method 'head'

Thanks for your help !
In the meantime I am using the basic 'request' module

@frankrousseau
Copy link
Contributor

Hi, that's defintely missing to request-json.

Feel free to contribute by adding it, the code is very simple.

Thank you for the feature suggestion.

@frankrousseau
Copy link
Contributor

Head is now available. Thank you for your suggestion!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants