Networking Http Data File

Table of Contents

  1. HttpFile
  2. Library

HttpFile

This is class provides file access/storage for HTTP requests and responses data payloads.

Library

Includes

#include "http/client/data/HttpFile.h"

Reference

HttpFile(const char* path, const char* mode) //mode is "r", "w", "a", etc

Instantiates the object. Opens file at path path using mode mode. It will be closed on destruction of the instance.

Note that you must choose the appropriate mode, eg if you want to store some data from a HTTP response payload, use "w" or "a", otherwise if you want to send data from this file in an HTTP request, use "r".

Information

Note that to use this you must instantiate a proper file system (such as the LocalFileSystem or the SDFileSystem).

Examples

The Working With The Stack article's first example uses HttpText.


All wikipages