SecureBlackbox 2020 macOS Edition

Questions / Feedback?

HTTPRequestParameters Type

Represents the headers of the HTTP request to make.

Remarks

If a header is not assigned but required for a successful request (such as Connection or Host), it will be generated automatically by the class.

Fields

accept
String

Specifies the Accept header field of the HTTP request. The Accept field defines which media types are accepted in the response.

acceptCharset
String

Specifies the Accept-Charset header field of the HTTP request. The Accept-Charset field specifies the character set which the client can understand.

acceptLanguage
String

Specifies the Accept-Language header field of the HTTP request. The Accept-Language field specifies the language (and locale) which the client can understand.

acceptRangeEnd
Int64

This property, in combination with AcceptRangeStart, defines the media-range of the HTTP request.

acceptRangeStart
Int64

This property, in combination with AcceptRangeEnd, defines the media-range of the HTTP request.

authorization
String

Specifies the Authorization header of the HTTP request. This header contains the credentials to authenticate a user with a server.

connection
String

Specifies the value to pass to the Connection header field of HTTP request.

contentLength
Int64

Specifies the size of the entity-body of the HTTP request. Leave this field set to 0 to make the class calculate it automatically.

contentRangeEnd
Int64

Specifies the upper bound used in the Content-Range header of the HTTP request.

contentRangeFullSize
Int64

Specifies the total length of the full entity-body of the HTTP request.

contentRangeStart
Int64

Specifies the lower bound used in the Content-Range header of the HTTP request.

contentType
String

The Content-Type header field of the HTTP request.

cookie
String

This header is expected to be assigned with cookies previously received from the server and stored by the client.

customHeaders
String

Assign any custom HTTP headers to be passed to the server to this property.

date
String

The date and time of the request.

from
String

Contains the From header field of the HTTP request. It specifies the e-mail address for the human user who controls the requesting user agent.

host
String

This property contains the Host header field of the HTTP request. It specifies the host and port number of the resource being requested.

httpVersion
HTTPVersions

Specifies the version of HTTP protocol to use: 1.0 or 1.1.

chvHTTP10HTTP/1.0 (0)
chvHTTP11HTTP/1.1 (1)

ifMatch
String

Contains the If-Match request header field. This property makes the requested method conditional: when If-Match field is set, only the entities matching the included entity tags will be returned by the server.

ifModifiedSince
String

Contains the If-Modified-Since request header field. This property makes the requested method conditional: when If-Modified-Since field is set, only the modified entities will be returned by the server.

ifNoneMatch
String

Contains the If-None-Match request header field. This property makes the requested method conditional: when If-None-Match field is set, only the entities which doesn't match the included entity tags will be returned by the server.

ifUnmodifiedSince
String

Contains the If-Unmodified-Since request header field. This property makes the requested method conditional: when If-Unmodified-Since field is set, only the unmodified entities will be returned by the server.

password
String

Assign this property with the user's password.

referer
String

The Referer field of the HTTP request header specifies the address of the resource from which the Request-URI was obtained (the referrer).

userAgent
String

The User-Agent field of the HTTP request provides information about the software that initiates the request.

username
String

Assign this property with the user's login name.

Constructors

public init()

Creates a new HTTPRequestParameters object.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 macOS Edition - Version 20.0 [Build 8165]