Prime 10 Iot Communication Protocols 2021
In this case, a PUT request on a basic URI might lead to a number of different URIs being outlined by the origin server. it MUST send a 301 response; the consumer agent MAY then make its own decision relating to whether or not to redirect the request. If the request passes through a cache and the Request-URI identifies a number of at present cached entities, those entries SHOULD be treated as stale. Responses to this technique are not cacheable, until the response includes acceptable Cache-Control or Expires header fields. However, the 303 response can be utilized to direct the person agent to retrieve a cacheable resource. The action performed by the POST methodology may not result in a resource that may be recognized by a URI.
In this case, either 200 or 204 is the appropriate response standing, depending on whether or not or not the response consists of an entity that describes the end result. The response to a HEAD request MAY be cacheable in the sense that the data contained in the response MAY be used to replace a beforehand cached entity from that useful resource. The response to a GET request is cacheable if and only if it meets the requirements for HTTP caching described in section 13. If the OPTIONS request includes an entity-body (as indicated by the presence of Content-Length or Transfer-Encoding), then the media kind MUST be indicated by a Content-Type field. Although this specification does not … Read More