user16098: I am trying to update values to Firebase. According to Firebase:
curl -X PUT -d '{ "first": "Jack", "last": "Sparrow" }' \
  'https://[PROJECT_ID].firebaseio.com/users/jack/name.json'

We can update using put command. Using curl works fine, but when I look at the header of ESP8266HTTPClient, I don't see any put or patch method there.
I can only see the following:
int GET();
int POST(uint8_t * payload, size_t size);
int POST(String payload);

Whereas in NodeMCU documentation, it is clearly stated it supports the put method too.
http.put(url, headers, body, callback)

http.put() documentation
I cannot find any example. 
How can I implement the put method in NodeMCU?

user16098: pardon me if i asked too soon. I found the answer. 
all verb are supported. but post and get got their own names.
 int httpCode = http.sendRequest("PUT", String(data));

enven post method implement the sendRequest.

16098: <p>I am trying to update values to Firebase. According to Firebase:</p>

<pre class="lang-sh prettyprint-override"><code>curl -X PUT -d '{ "first": "Jack", "last": "Sparrow" }' \
  'https://[PROJECT_ID].firebaseio.com/users/jack/name.json'
</code></pre>

<p>We can update using put command. Using curl works fine, but when I look at the header of <code>ESP8266HTTPClient</code>, I don't see any <code>put</code> or <code>patch</code> method there.</p>

<p>I can only see the following:</p>

<pre class="lang-cpp prettyprint-override"><code>int GET();
int POST(uint8_t * payload, size_t size);
int POST(String payload);
</code></pre>

<p>Whereas in NodeMCU documentation, it is clearly stated it supports the <code>put</code> method too.</p>

<pre class="lang-lua prettyprint-override"><code>http.put(url, headers, body, callback)
</code></pre>

<p><a href="https://nodemcu.readthedocs.io/en/master/en/modules/http/#httpput" rel="nofollow noreferrer"><code>http.put()</code> documentation</a></p>

<p>I cannot find any example. </p>

<p>How can I implement the <code>put</code> method in NodeMCU?</p>
 16098: <p>pardon me if i asked too soon. I found the answer. 
all verb are supported. but <code>post</code> and <code>get</code> got their own names.</p>

<pre><code> int httpCode = http.sendRequest("PUT", String(data));
</code></pre>

<p>enven post method implement the sendRequest.</p>
