Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

WebResourceMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class HTMLViewer Mac MBS MacControls Plugin 7.2 Yes No No Yes, macOS only No
Function: A WebResource represents a fully downloaded URL.
Example:
dim w as new WebResourceMBS("Hello World", "http://www.server.invalid", "text/plain", "ASCII", "myframe")

MsgBox w.URL+EndOfLine+w.textEncodingName+EndOfLine+w.MIMEType
Notes:
It includes the data of the resource as well as the metadata associated with the resource.

All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.

Feedback, Comments & Corrections

  • property Handle as Integer
  • 6 methods
    • method Constructor(data as MemoryBlock, url as string, mimeType as string, TextEncodingName as string="", frameName as string="")
    • method data as MemoryBlock
    • method frameName as String
    • method MIMEType as String
    • method textEncodingName as String
    • method URL as String

This class has no sub classes.

Some methods using this class:


The items on this page are in the following plugins: MBS MacControls Plugin.


WebResourceLoadDelegateMBS   -   WebScriptCallbackMBS




Links
MBS Xojo Plugins