Class (GI Struct)

Rest-1.0RestParam

Index

Constructors

  • Parameters

    • name: string
    • use: Rest.MemoryUse
    • data: string | Uint8Array<ArrayBufferLike>
    • content_type: string
    • Optionalfilename: string

    Returns Param

Properties

$gtype: GType<Param>

Methods

  • Get the content of param. The content should be treated as read-only and not modified in any way.

    Returns any

    the content.

  • Get the length of the content of param.

    Returns number

    the length of the content

  • Get the MIME type of the parameter. For example, basic strings have the MIME type "text/plain".

    Returns string

    the MIME type

  • Get the original file name of the parameter, if one is available.

    Returns string

    the filename if set, or null.

  • Determine if the parameter is a string value, i.e. the content type is "text/plain".

    Returns boolean

    true if the parameter is a string, false otherwise.

  • Decrease the reference count on param, destroying it if the reference count reaches 0.

    Returns void

  • Parameters

    • name: string
    • use: Rest.MemoryUse
    • data: string | Uint8Array<ArrayBufferLike>
    • content_type: string
    • Optionalfilename: string

    Returns Param

  • Parameters

    • name: string
    • data: string | Uint8Array<ArrayBufferLike>
    • content_type: string
    • Optionalfilename: string
    • Optionalowner: any
    • Optionalowner_dnotify: DestroyNotify

    Returns Param