# Record TMIMEMultipartData

Description
Hierarchy
Fields
Methods
Properties

## Unit

internetaccess

## Declaration

`type TMIMEMultipartData = record`

## Description

encodes the data corresponding to RFC 1341 (preliminary)

## Overview

### Fields

| `data: array of TMIMEMultipartSubData;`
| `nested const HeaderSeparator = #13#10;`
| `nested const ALLOWED_BOUNDARY_CHARS: string = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-';`

### Methods

| `function getFormDataIndex(const name: string): integer;`
| `procedure add(const sdata: string; const headers: string = '');`
| `procedure addFormData(const name, sdata: string; headers: string = '');`
| `procedure addFormDataFile(const name, filename: string; headers: string = '');`
| `procedure addFormData(const name, sdata, filename, contenttype, headers: string);`
| `function compose(out boundary: string; boundaryHint: string = '---------------------------1212jhjg2ypsdofx0235p2z5as09'): string;`
| `procedure parse(sdata, boundary: string);`
| `procedure clear;`
| `class function buildHeaders(const name, filename, contenttype, headers: string): TStringArray; static;`
| `class function insertMissingNameToHeaders(const name: string; headers: TStringArray): TStringArray; static;`
| `class function nameFromHeader(const header: string): string; static;`
| `class function indexOfHeader(const sl: TStringArray; name: string): sizeint; static;`
| `class function HeaderForBoundary(const boundary: string): string; static;`

## Description

### Fields

| `data: array of TMIMEMultipartSubData;`

| `nested const HeaderSeparator = #13#10;`

| `nested const ALLOWED_BOUNDARY_CHARS: string = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-';`

### Methods

| `function getFormDataIndex(const name: string): integer;`

| `procedure add(const sdata: string; const headers: string = '');`

| `procedure addFormData(const name, sdata: string; headers: string = '');`

| `procedure addFormDataFile(const name, filename: string; headers: string = '');`

| `procedure addFormData(const name, sdata, filename, contenttype, headers: string);`

| `function compose(out boundary: string; boundaryHint: string = '---------------------------1212jhjg2ypsdofx0235p2z5as09'): string;`

| `procedure parse(sdata, boundary: string);`

| `procedure clear;`

| `class function buildHeaders(const name, filename, contenttype, headers: string): TStringArray; static;`

| `class function insertMissingNameToHeaders(const name: string; headers: TStringArray): TStringArray; static;`

| `class function nameFromHeader(const header: string): string; static;`

| `class function indexOfHeader(const sl: TStringArray; name: string): sizeint; static;`

| `class function HeaderForBoundary(const boundary: string): string; static;`

Generated by PasDoc 0.16.0.