package gapi-ocaml
A simple OCaml client for Google Services
Install
Dune Dependency
Authors
Maintainers
Sources
v0.4.6.tar.gz
sha256=b84b680528a5e050014103a8e7a60a5d43efd5fefc3f838310bd46769775ab48
md5=8ee26acf1f6c6f5e24c7b57fa070a0a2
doc/gapi-ocaml.netstring-local/Netascii_armor/index.html
Module Netascii_armor
Source
Messages with ASCII armor
There are various forms of ASCII-armored messages:
- PEM messages (privacy enhanced mail) - a historic message format
- OpenPGP messages. This type of message has a header, a BASE-64-encoded body, and a checksum.
- X.509 keys. These just use BASE-64.
Source
type armored_message = [
| `Plain of Netmime.mime_body
| `Base64 of Netmime.mime_body
| `OpenPGP of Netmime.mime_header * Netmime.mime_body * int
]
Messages:
`Plain m
: The bodym
is written as-is`Base64 m
: The bodym
needs to be BASE-64-encoded in order to create the ASCII armor`OpenPGP(h,m,chksum)
: There is a headerh
, a bodym
which will be BASE-64-encoded, and a checksumchksum
Source
type armored_message_ro = [
| `Plain of Netmime.mime_body_ro
| `Base64 of Netmime.mime_body_ro
| `OpenPGP of Netmime.mime_header_ro * Netmime.mime_body_ro * int
]
The read-only version of armored_message
Which types of armor to decode, and how. The strings are the identifiers in the boundaries, e.g. include "PRIVACY-ENHANCED MESSAGE" if the boundaries are "-----BEGIN PRIVACY-ENHANCED MESSAGE-----" and "-----END PRIVACY-ENHANCED MESSAGE-----". For every type you can define the armor_type
.
Parses the channel, and returns all messages that are enabled in the specification.
The channel is read line-by-line.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>