contentType
contentType: (RequestBody) -> MediaType?The content type, or nil.
RequestBody.create(…)
RequestBuilder.new():build():body()| Method | Returns | Description |
|---|---|---|
contentType() | MediaType? | The content type, or nil. |
contentLength() | number | The length in bytes. |
create(MediaType?, string) | RequestBody | content in contentType's charset; a type with no charset gets ; charset=utf-8 added, as OkHttp does. (A Luau string is the text.) |
| Method | Returns | Description |
|---|---|---|
Request.body | RequestBody? | The body, or nil. |
RequestBodyClass.create | RequestBody | content in contentType's charset; a type with no charset gets ; charset=utf-8 added, as OkHttp does. (A Luau string is the text.) |
contentTypecontentType: (RequestBody) -> MediaType?The content type, or nil.
contentLengthcontentLength: (RequestBody) -> numberThe length in bytes.
createcreate: (MediaType?, string) -> RequestBodycontent in contentType's charset; a type with no charset gets ; charset=utf-8 added, as OkHttp does. (A Luau string is the text.)