Flutter Engine
The Flutter Engine
Functions | Variables
PostHandler.cpp File Reference
#include "tools/skiaserve/urlhandlers/UrlHandler.h"
#include "microhttpd.h"
#include "tools/skiaserve/Request.h"
#include "tools/skiaserve/Response.h"

Go to the source code of this file.

Functions

static int process_upload_data (void *cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *data, uint64_t off, size_t size)
 

Variables

static const size_t kBufferSize = 1024
 

Function Documentation

◆ process_upload_data()

static int process_upload_data ( void *  cls,
enum MHD_ValueKind  kind,
const char *  key,
const char *  filename,
const char *  content_type,
const char *  transfer_encoding,
const char *  data,
uint64_t  off,
size_t  size 
)
static

Definition at line 18 of file PostHandler.cpp.

21 {
22 struct UploadContext* uc = reinterpret_cast<UploadContext*>(cls);
23
24 if (0 != size) {
25 uc->fStream.write(data, size);
26 }
27 return MHD_YES;
28}
bool write(const void *buffer, size_t size) override
Definition: SkStream.cpp:535
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
SkDynamicMemoryWStream fStream
Definition: Request.h:29
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

Variable Documentation

◆ kBufferSize

const size_t kBufferSize = 1024
static

Definition at line 16 of file PostHandler.cpp.