File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,17 @@ export class Multipart implements Part {
113113 }
114114
115115 /**
116- * The boundary bytes used to separate the parts
116+ * Get the boundary bytes used to separate the parts
117117 */
118118 public get boundary ( ) : Uint8Array {
119119 return this . #boundary;
120120 }
121121
122+ /**
123+ * Set the boundary bytes used to separate the parts
124+ * @throws {RangeError } If the boundary is invalid. A valid boundary is 1 to 70 characters long,
125+ * does not end with space, and may only contain: A-Z a-z 0-9 '()+_,-./:=? and space
126+ */
122127 public set boundary ( boundary : Uint8Array | string ) {
123128 this . #boundary = typeof boundary === "string" ? new TextEncoder ( ) . encode ( boundary ) : boundary ;
124129 if ( ! Multipart . isValidBoundary ( this . #boundary) )
You can’t perform that action at this time.
0 commit comments