HttpBody
HttpBody: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): HttpBody
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: HttpBody, writer?: Writer): Writer
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { contentType?: string; data?: Uint8Array; extensions?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] }): HttpBody
-
Parameters
-
object: { contentType?: string; data?: Uint8Array; extensions?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] }
-
Optional contentType?: string
-
Optional data?: Uint8Array
-
Optional extensions?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[]
-
toJSON: function
-
Parameters
Returns unknown
The HTTP Content-Type header value specifying the content type of the body.