+
Point of view
All features
class HTTP_PROTOCOL
Summary
To access to "http://..." URLs
Direct parents
Inherit list: TCP_PROTOCOL
Class invariant
Overview
Creation features
{PROTOCOLS}
Features
{ANY}
{URL}
{}
{ANY}
{URL}
{}
{RECYCLING_POOL}
  • recycle
    Do whatever needs to be done to free resources or recycle other objects when recycling this one
{}
  • dispose
    Action to be executed just before garbage collection reclaims an object.
{}
{}
writable attribute
{ANY}
is_connected: BOOLEAN
effective function
{ANY}
standard_port: INTEGER_32
writable attribute
{ANY}
input: INPUT_STREAM
writable attribute
{URL}
require
  • is_connected
output: OUTPUT_STREAM
writable attribute
{URL}
require
  • is_connected
disconnect
effective procedure
{URL}
require
  • is_connected
ensure
  • not is_connected
connect_to (url: URL, read: BOOLEAN, write: BOOLEAN)
effective procedure
{URL}
require
  • url.uri /= Void
  • not is_connected
  • read or write
make (a_name: FIXED_STRING, a_standard_port: INTEGER_32)
effective procedure
{}
writable attribute
{}
proxy_url: URL
writable attribute
{}
tcp_connect_to (ios: SOCKET_INPUT_OUTPUT_STREAM, url: URL, read: BOOLEAN, write: BOOLEAN)
effective procedure
{}
require
  • ios.is_connected
  • url.uri /= Void
  • not is_connected
error: STRING
writable attribute
{ANY}
valid_uri (a_uri: STRING): BOOLEAN
effective function
{ANY}
sync: BOOLEAN
writable attribute
{ANY}
set_sync (a_sync: BOOLEAN) assign sync
effective procedure
{ANY}
ensure
locator (a_uri: STRING): NETWORK_RESOURCE_LOCATOR
effective function
{URL}
PROTOCOL is a factory of RESOURCE_LOCATOR
require
  • valid_uri(a_uri)
ensure
  • Result.uri.is_equal(a_uri)
recycle_locator (a_locator: RESOURCE_LOCATOR)
effective procedure
{URL}
require
  • a_locator /= Void
once function
{}
recycle
effective procedure
Do whatever needs to be done to free resources or recycle other objects when recycling this one
dispose
effective procedure
{}
Action to be executed just before garbage collection reclaims an object.
is_relative_uri (a_uri: STRING): BOOLEAN
effective function
{}
is_absolute_uri (a_uri: STRING): BOOLEAN
effective function
{}
True if a_uri contains a correctly formatted network URI (i.e. everything except the protocol scheme)
require
  • not a_uri.is_empty
once function
{}