manakai//メモ//2005-07-04

manakai//メモ//2005-07-04

[1] CGIスクリプト用界面(案)

Interface CGIImplementation

  Methods
    createCGIScriptConfiguration of type CGIScriptConfiguration

Interface CGIRequest

  Attributes
    authType
    commandLine of type StringList, read-only
      4.4. The Script Command Line.
    contentLength
    contentType
    currentDirectory of type DOMString, read-only
      7. System Specifications
    gatewayInterface
    implementation of type CGIImplementation, read-only
    isNPHScript of type boolean
      5.1. Identification.
    messageBody of type CGIRequestMessageBody, read-only
    pathInfo
    pathTranslated
    queryString
    remoteAddr
    remoteHost
    remoteIdent
    remoteUser
    requestMethod
    scriptName
    scriptURI of type DOMString, read-only
      Script-URI as defined in RFC 3875 3.3. The Script-URI.
    serverName
    serverPort
    serverProtocol
    serverSoftware
  Methods
    canCreateCGIResponse
      Parameters
      
        config of type CGIScriptConfiguration
    createCGIResponse
      Parameters
      
        config of type CGIScriptConfiguration
    getFeature
    getMetaVariable
      RFC 3875 4.1. Request Meta-Variables.
      Parameters
        variableName of type DOMString
      Return Values
        DOMString
    hasFeature

Interface HTTPCGIRequest extends CGIRequest

  Attributes
    httpAccept
    httpAcceptCharset
    :

Interface CGIRequestMessageBody

  6. CGI Response.
  Attributes
    byteStream of type LSInputStream, read-only
    byteSequence of type CGIByteSequence, read-only
    cgiRequest of type CGIRequest, read-only

Interface CGIResponse

  NPH responses are not supported.
  Constant Group CGIResponseType
    6.2. Response Types
    CGI_DOCUMENT_RESPONSE
    CGI_LOCAL_REDIR_RESPONSE
    CGI_CLIENT_REDIR_RESPONSE
    CGI_CLIENT_REDIRDOC_RESPONSE
  Attributes
    contentType of type DOMString
    isHeaderSent of type boolean, read-only
    location of type DOMString
    messageBody of type CGIResponseMessageBody, read-only
    responseType of type CGIResponseType, read-only
    status of type DOMString
      6.3.3. Status.
    statusCode of type unsigned-short
      6.3.3. Status.
  Methods
    appendHeaderField
    getFirstHeaderFieldBody
      By name.
    getHeaderFieldBodyByIndex
    sendHeader
    setHeaderField

Interface HTTPCGIResponse extends CGIResponse

  Attributes
    httpVersion of type DOMString

Interface CGIResponseMessageBody

  Attributes
    byteStream of type LSOutput, read-only
    byteSequence of type CGIByteSequence, read-only
    
    cgiResponse of type CGIResponse, read-only

Interface CGIScriptConfiguration

  Attributes
    allowPathInfo of type boolean
      8.2. Recommendations for Scripts
    allowSpecialPath of type boolean
      8.2. Recommendations for Scripts
    maxContentLength of type unsigned-long
      9.6. Data Length and Buffering Considerations
    maxContentLengthStatusCode of type unsigned-short
      9.6. Data Length and Buffering Considerations
  Methods
    isMediaTypeSupported
      8.2. Recommendations for Scripts
    isRequestMethodSupported
    isRequestProtocolSupported
    isURISchemeSupported