code: def _ok(self, packets=None, headers=None, b64=False):
          
          if packets is not None:
              if headers is None:
                  headers = []
              if b64:
                  headers += [('Content-Type', 'text/plain; charset=UTF-8')]
              else:
                  headers += [('Content-Type', 'application/octet-stream')]
              return {'status': '200 OK',
                      'headers': headers,
                      'response': payload.Payload(packets=packets).encode(b64)}
          else:
              return {'status': '200 OK',
                      'headers': [('Content-Type', 'text/plain')],
                      'response': b'OK'}
docs: Generate a successful HTTP response.