<commit_before>---
name: Titanium.Network.HTTPClient
summary: The HttpClient instance returned from <Titanium.Network.createHTTPClient>. This object (mostly) implements the XMLHttpRequest specification.
description: Mobile web requires cross-domain origin policies to be configured on the web servers in order for cross-domain connections to work.
extends: Titanium.Proxy
since: "0.1"
methods:
  - name: abort
    summary: abort a pending request
  - name: getResponseHeader
    summary: return the response header.
    returns:
        type: String
    parameters:
      - name: name
        summary: the header name
        type: String
  - name: open
    summary: open the request and ready the connection
    parameters:
      - name: method
        summary: the HTTP method
        type: String
      - name: url
        summary: the URL for the request
        type: String
      - name: async
        summary: optional property to indicate if asynchronous (default) or not
        type: Boolean
        default: true
  - name: send
    summary: send the request (Only async is currently supported)
    parameters:
      - name: data
        summary: the data to send in the request. can either be null, dictionary, string, File object or Blob.
        type: Object
  - name: setRequestHeader
    summary: set the request header. Must be called after `open` but before `send`.
    parameters:
      - name: name
        summary: name of the header
        type: String
      - name: value
        summary: value of the header. May be null to clearing out a property, such as X-Requested-With
        type: String
  - name: setTimeout
    summary: set the request timeout
    parameters:
      - name: timeout
        summary: the timeout in milliseconds
        type: Number
properties:
  - name: DONE
    summary: the DONE readyState constant
    type: Number
    permission: read-only
  - name: HEADERS_RECEIVED
    summary: the HEADERS_RECEIVED readyState constant
    type: Number
    permission: read-only
  - name: LOADING
    summary: the LOADING readyState constant
    type: Number
    permission: read-only
  - name: OPENED
    summary: the OPENED readyState constant
    type: Number
    permission: read-only
  - name: UNSENT
    summary: the UNSET readyState constant
    type: Number
    permission: read-only
  - name: connected
    summary: boolean to indicate that the response was successful
    type: Boolean
  - name: connectionType
    summary: the connection type, normally either `GET` or `POST`.
    type: String
  - name: file
    summary: file to download contents to.  Can only be set after calling open.
    type: String
    platforms: [iphone, ipad]
  - name: location
    summary: the absolute URL of the request
    type: String
  - name: ondatastream
    summary: set this to a function before calling open to cause the function to be called at regular intervals as the request data is being received. the `progress` property of the event will contain a value from 0.0-1.0 with the progress.
    type: Callback<Object>
  - name: onerror
    summary: set this to a function before calling open to cause the function to be called upon a error response
    type: Callback<Object>
  - name: onload
    summary: set this to a function before calling open to cause the function to be called upon a successful response
    type: Callback<Object>
  - name: onreadystatechange
    summary: set this to a function before calling open to cause the function to be called for each readyState change
    type: Callback<Object>
  - name: onsendstream
    summary: set this to a function before calling open to cause the function to be called at regular intervals as the request data is being transmitted. the `progress` property of the event will contain a value from 0.0-1.0 with the progress.
    type: Callback<Object>
  - name: readyState
    summary: the readyState value
    type: Number
  - name: responseData
    summary: the response data as a Blob object.
    type: Titanium.Blob
    permission: read-only
  - name: responseText
    summary: the response as text or null if an error was received or no data was returned
    type: String
    permission: read-only
  - name: responseXML
    summary: the response object as an XML DOMDocument object. returns null if the content type returned by the server was not XML or the content could not be parsed
    type: Titanium.XML.Document
    permission: read-only
  - name: status
    summary: the response HTTP status code
    type: Number
    permission: read-only
  - name: timeout
    summary: timeout is milliseconds when the connection should be aborted
    type: Number
  - name: validatesSecureCertificate
    summary: set this to control how SSL certification validation is performed on connection.  defaults to false if in simulator or device testing and true if release for distribution mode.
    type: Boolean
  - name: tlsVersion
    summary: Sets the TLS version to use for handshakes. If you experience handshake failures, set this value to a lower version using the constants in <Titanium.Network>.
    type: Number
    platforms: [iphone, ipad]<commit_msg>[TIMOB-6311] Update documentation for TLS for clarification.<commit_after>---
name: Titanium.Network.HTTPClient
summary: The HttpClient instance returned from <Titanium.Network.createHTTPClient>. This object (mostly) implements the XMLHttpRequest specification.
description: Mobile web requires cross-domain origin policies to be configured on the web servers in order for cross-domain connections to work.
extends: Titanium.Proxy
since: "0.1"
methods:
  - name: abort
    summary: abort a pending request
  - name: getResponseHeader
    summary: return the response header.
    returns:
        type: String
    parameters:
      - name: name
        summary: the header name
        type: String
  - name: open
    summary: open the request and ready the connection
    parameters:
      - name: method
        summary: the HTTP method
        type: String
      - name: url
        summary: the URL for the request
        type: String
      - name: async
        summary: optional property to indicate if asynchronous (default) or not
        type: Boolean
        default: true
  - name: send
    summary: send the request (Only async is currently supported)
    parameters:
      - name: data
        summary: the data to send in the request. can either be null, dictionary, string, File object or Blob.
        type: Object
  - name: setRequestHeader
    summary: set the request header. Must be called after `open` but before `send`.
    parameters:
      - name: name
        summary: name of the header
        type: String
      - name: value
        summary: value of the header. May be null to clearing out a property, such as X-Requested-With
        type: String
  - name: setTimeout
    summary: set the request timeout
    parameters:
      - name: timeout
        summary: the timeout in milliseconds
        type: Number
properties:
  - name: DONE
    summary: the DONE readyState constant
    type: Number
    permission: read-only
  - name: HEADERS_RECEIVED
    summary: the HEADERS_RECEIVED readyState constant
    type: Number
    permission: read-only
  - name: LOADING
    summary: the LOADING readyState constant
    type: Number
    permission: read-only
  - name: OPENED
    summary: the OPENED readyState constant
    type: Number
    permission: read-only
  - name: UNSENT
    summary: the UNSET readyState constant
    type: Number
    permission: read-only
  - name: connected
    summary: boolean to indicate that the response was successful
    type: Boolean
  - name: connectionType
    summary: the connection type, normally either `GET` or `POST`.
    type: String
  - name: file
    summary: file to download contents to.  Can only be set after calling open.
    type: String
    platforms: [iphone, ipad]
  - name: location
    summary: the absolute URL of the request
    type: String
  - name: ondatastream
    summary: set this to a function before calling open to cause the function to be called at regular intervals as the request data is being received. the `progress` property of the event will contain a value from 0.0-1.0 with the progress.
    type: Callback<Object>
  - name: onerror
    summary: set this to a function before calling open to cause the function to be called upon a error response
    type: Callback<Object>
  - name: onload
    summary: set this to a function before calling open to cause the function to be called upon a successful response
    type: Callback<Object>
  - name: onreadystatechange
    summary: set this to a function before calling open to cause the function to be called for each readyState change
    type: Callback<Object>
  - name: onsendstream
    summary: set this to a function before calling open to cause the function to be called at regular intervals as the request data is being transmitted. the `progress` property of the event will contain a value from 0.0-1.0 with the progress.
    type: Callback<Object>
  - name: readyState
    summary: the readyState value
    type: Number
  - name: responseData
    summary: the response data as a Blob object.
    type: Titanium.Blob
    permission: read-only
  - name: responseText
    summary: the response as text or null if an error was received or no data was returned
    type: String
    permission: read-only
  - name: responseXML
    summary: the response object as an XML DOMDocument object. returns null if the content type returned by the server was not XML or the content could not be parsed
    type: Titanium.XML.Document
    permission: read-only
  - name: status
    summary: the response HTTP status code
    type: Number
    permission: read-only
  - name: timeout
    summary: timeout is milliseconds when the connection should be aborted
    type: Number
  - name: validatesSecureCertificate
    summary: set this to control how SSL certification validation is performed on connection.  defaults to false if in simulator or device testing and true if release for distribution mode.
    type: Boolean
  - name: tlsVersion
    summary: Sets the TLS version to use for handshakes. 
    description: If you experience handshake failures, set this value to a lower version using the TLS constants in <Titanium.Network>.
    default: For iOS 4, this is effectively [TLS_VERSION_1_0](Titanium.Network). For iOS 5 and greater, this is [TLS_VERSION_1_2](Titanium.Network).
    type: Number
    platforms: [iphone, ipad]
{'fraction_non_alphanumeric': 0.052661596958174905, 'fraction_numerical': 0.0028517110266159697, 'mean_word_length': 2.985227272727273, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '234591', 'n_tokens_mistral': 2703, 'n_tokens_neox': 2660, 'n_words': 1337}