http\Encoding
[mdref/mdref-http] / http / Encoding / Stream / Deflate / encode.md
diff --git a/http/Encoding/Stream/Deflate/encode.md b/http/Encoding/Stream/Deflate/encode.md
new file mode 100644 (file)
index 0000000..7a8ff70
--- /dev/null
@@ -0,0 +1,14 @@
+# static string http\Encoding\Stream\Deflate::encode(string $data[, int $flags = 0])
+
+Encode data with deflate/zlib/gzip encoding.
+
+## Params:
+
+* string $data  
+  The data to compress.
+* Optional int $flags = 0  
+  Any compression tuning flags. See http\Encoding\Stream\Deflate and http\Encoding\Stream constants.
+
+## Returns:
+
+* string, the compressed data.