Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Latest commit

 

History

History
186 lines (181 loc) · 4.43 KB

Next.md

File metadata and controls

186 lines (181 loc) · 4.43 KB

API描述

读取下一条访问日志,v0.1.8开始加入。

API地址

/api/v1/proxy/${serverId}/accesslog/next/${id}

其中:

  • ${serverId} - 代理服务ID
  • ${id} - 上一条访问日志的ID,类似于5d7deadf5635e93c191a45a8

请求方法

GET

请求参数

返回结果示例

{
  "accesslog": {
    "id": "5d7deb2cb87de2e8716bce57",
    "serverId": "JnZ03pbDebcOQ7h9",
    "backendId": "0biKxy56Y4sUoo9Z",
    "locationId": "",
    "fastcgiId": "",
    "rewriteId": "",
    "teaVersion": "0.1.7.2",
    "remoteAddr": "127.0.0.1",
    "remotePort": 0,
    "remoteUser": "",
    "requestURI": "/",
    "requestPath": "/",
    "apiPath": "",
    "apiStatus": "",
    "requestLength": 0,
    "requestTime": 0.000483742,
    "requestMethod": "GET",
    "requestFilename": "",
    "scheme": "http",
    "proto": "HTTP/1.1",
    "bytesSent": 19,
    "bodyBytesSent": 19,
    "status": 200,
    "statusMessage": "",
    "sentHeader": {
      "Content-Length": [
        "19"
      ],
      "Content-Type": [
        "text/plain; charset=utf-8"
      ],
      "Date": [
        "Sun, 15 Sep 2019 07:41:30 GMT"
      ],
      "Hello": [
        "World"
      ],
      "X-Cache": [
        "BYPASS"
      ]
    },
    "timeISO8601": "2019-09-15T15:41:30.988+08:00",
    "timeLocal": "15/Sep/2019:15:41:30 +0800",
    "msec": 1.568533290988144e+09,
    "timestamp": 1568533290,
    "host": "127.0.0.1:8882",
    "referer": "",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36",
    "request": "GET / HTTP/1.1",
    "contentType": "",
    "cookie": {
      "Hm_lvt_2259172a9054c42aae07421c8bbf3c84": "1566973980,1567065204,1567579748,1568187255",
      "sid": "p8HXSTNo8h2dwU0kyZcoP2O2qdmBPMo1"
    },
    "arg": null,
    "args": "",
    "queryString": "",
    "header": {
      "Accept": [
        "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3"
      ],
      "Accept-Encoding": [
        "gzip, deflate, br"
      ],
      "Accept-Language": [
        "en-US,en;q=0.9,zh-CN;q=0.8,zh-TW;q=0.7,zh;q=0.6,ja;q=0.5,pl;q=0.4,mt;q=0.3"
      ],
      "Cache-Control": [
        "max-age=0"
      ],
      "Connection": [
        "keep-alive"
      ],
      "Cookie": [
        "sid=p8HXSTNo8h2dwU0kyZcoP2O2qdmBPMo1; Hm_lvt_2259172a9054c42aae07421c8bbf3c84=1566973980,1567065204,1567579748,1568187255"
      ],
      "Sec-Fetch-Mode": [
        "navigate"
      ],
      "Sec-Fetch-Site": [
        "none"
      ],
      "Sec-Fetch-User": [
        "?1"
      ],
      "Upgrade-Insecure-Requests": [
        "1"
      ],
      "User-Agent": [
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
      ],
      "X-Forwarded-By": [
        "127.0.0.1:8882"
      ],
      "X-Forwarded-For": [
        "127.0.0.1"
      ],
      "X-Forwarded-Host": [
        "127.0.0.1:8882"
      ],
      "X-Forwarded-Proto": [
        "http"
      ],
      "X-Real-IP": [
        "127.0.0.1"
      ]
    },
    "serverName": "www.teaos.cn",
    "serverPort": 8882,
    "serverProtocol": "HTTP/1.1",
    "backendAddress": "127.0.0.1:9991",
    "fastcgiAddress": "",
    "requestData": "",
    "responseHeaderData": "SFRUUC8xLjEgMjAwIE9LDQpDb250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9dXRmLTgNCkRhdGU6IFN1biwgMTUgU2VwIDIwMTkgMDc6NDE6MzAgR01UDQpIZWxsbzogV29ybGQNClgtQ2FjaGU6IEJZUEFTUw0KDQo=",
    "responseBodyData": "VGhpcyBpcyB0ZXN0IHNlcnZlcg==",
    "errors": null,
    "hasErrors": false,
    "extend": {
      "file": {
        "mimeType": "",
        "extension": "",
        "charset": ""
      },
      "client": {
        "os": {
          "family": "Mac OS X",
          "major": "10",
          "minor": "14",
          "patch": "6",
          "patchMinor": ""
        },
        "device": {
          "family": "Other",
          "brand": "",
          "model": ""
        },
        "browser": {
          "family": "Chrome",
          "major": "76",
          "minor": "0",
          "patch": "3809"
        }
      },
      "geo": {
        "region": "",
        "state": "",
        "city": "",
        "location": {
          "latitude": 0,
          "longitude": 0,
          "timeZone": "",
          "accuracyRadius": 0,
          "metroCode": 0
        }
      }
    },
    "attrs": {},
    "storageOnly": false,
    "storagePolicyIds": null
  }
}